I have REST API in API Gateway. Cloudwatch logging is enabled for each stage and logging level is "Full request and Response logs". Because I use metrics also "Enable Detailed CloudWatch Metrics" is enabled in stages Logs/tracing tab. When I look at Cloudwatch Log streams under right Log group I easily can follow what happens with each request. I have used Cloudwatch logs insights queries to search for 4xx and 5xx errors and then investigate them in log streams. What i'm missing is how I can query by requests http method or full request in Logs Insights? ie. I'd like to find all HTTP Delete methods requests, or requests to certain resource path "myapi/foo/bar/". Because there is so much log rows in logs it would be handy to query only for certain requests in logs insights and then drill down in Logs streams Is there more fields in Logs insights I haven't found yet, or what I'm missing here that isn't obvious after reading documentation about API gateway logging?
Asked
Active
Viewed 173 times