[{"data":1,"prerenderedAt":34},["ShallowReactive",2],{"snippet-cloudwatch-insight-apigw-last-10-requests":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":18,"meta":19,"resources":20,"services":21,"snippets":23,"stem":28,"tags":29,"type":32,"__hash__":33},"snippets\u002Fsnippets\u002Fcloudwatch-insight-apigw-last-10-requests.json","Last 10 requests",[7],"content\u002Fcontributors\u002Fgiedrius-praspaliauskas.json","Get last 10 requests in your API Gateway access log group.","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Fcloudwatch-insight-apigw-last-10-requests",{"headline":14,"text":15},"How it works",[16,17],"Cloudwatch Log Insights snippet that returns latest 10 API Gateway requests in your API Gateway access log group.","See snippet GitHub repository for the logging setup instructions.",[],{},null,[22],"apigw",[24],{"title":25,"language":26,"code":27},"Copy the code into CloudWatch Logs Insights","css","fields @timestamp, status, ip, path, httpMethod\n| sort @timestamp desc\n| limit 10","snippets\u002Fcloudwatch-insight-apigw-last-10-requests",[30,31],"Logs","API Gateway","CloudWatch Logs Insights","xOcMhSTfcBRVC6Q5Tpo9F4cJLxIPngIrPQkA6IOr_RM",1792578863944]