Skip to content

Instantly share code, notes, and snippets.

@antoinedelia
Last active September 30, 2022 09:55
Show Gist options
  • Save antoinedelia/0051e52b12410767146f2ea6a788e5e0 to your computer and use it in GitHub Desktop.
Save antoinedelia/0051e52b12410767146f2ea6a788e5e0 to your computer and use it in GitHub Desktop.
Query to filter CloudWatch Logs Insights
fields @timestamp, @message, @logStream
| parse @message "[*][*] *" as loggingTime, loggingType, loggingMessage
| filter loggingType in ["ERROR", "WARNING", "DEBUG", "INFO"]
| display loggingTime, loggingType, loggingMessage
| filter loggingMessage like "my search criteria"
| sort @timestamp desc
| limit 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment