[{"data":1,"prerenderedAt":34},["ShallowReactive",2],{"snippet-cloudwatch-insight-apigw-last-5xx-errors":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-5xx-errors.json","Last 10 5xx errors",[7],"content\u002Fcontributors\u002Fgiedrius-praspaliauskas.json","Get the last 10 5xx errors 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-5xx-errors",{"headline":14,"text":15},"How it works",[16,17],"Cloudwatch Log Insights snippet that returns latest 5xx errors in your API Gateway access logs.","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| filter status>=500 and status\u003C=599\n| sort @timestamp desc\n| limit 10","snippets\u002Fcloudwatch-insight-apigw-last-5xx-errors",[30,31],"Logs","API Gateway","CloudWatch Logs Insights","Qw6djgGWZ6KqvrlficTZ2J46OiLwfPkx1AR0bFLLM_M",1792578863961]