Last active
September 30, 2022 09:55
-
-
Save antoinedelia/0051e52b12410767146f2ea6a788e5e0 to your computer and use it in GitHub Desktop.
Query to filter CloudWatch Logs Insights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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