[{"data":1,"prerenderedAt":34},["ShallowReactive",2],{"snippet-cloudwatch-insight-apigw-top-10-api-keys":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-top-10-api-keys.json","Most used API keys",[7],"content\u002Fcontributors\u002Fgiedrius-praspaliauskas.json","Get list of most active API keys 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-top-10-api-keys",{"headline":14,"text":15},"How it works",[16,17],"Cloudwatch Log Insights snippet that returns 10 most actively used API keys.","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","stats count(*) as requestCount by apiKey\n| sort requestCount desc\n| limit 10","snippets\u002Fcloudwatch-insight-apigw-top-10-api-keys",[30,31],"Logs","API Gateway","CloudWatch Logs Insights","sawPdUrutmBZJ-IWOHgd7eaIt-boI_IqRw4a6K85wYI",1792578863997]