Search code examples
aws-cloudwatch-log-insights

How To Filter on a subquery in Amazon Cloudwatch Insights


Are you able to run a filter with a subquery in Cloudwatch Insights? I would like to take the requestID and find all logs related to it. I can run the queries separately but was trying to do it one.

Something like this:

filter @requestId in (filter @message like /Id 26313/ fields @requestId sort @timestamp desc limit 1)
| fields @message
| sort @timestamp desc

Solution

  • No. Subqueries are not currently possible.