Last active
December 9, 2020 09:56
-
-
Save Filirom1/3e61fa46f7e80031bc21ce08b8decf58 to your computer and use it in GitHub Desktop.
aws
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
aws logs get-query-results --output text --query 'results[]|[?field==`@message`][value]' --query-id $(aws logs start-query --log-group-name "XXXX" --start-time `date -d '12 hour ago' "+%s"` --end-time `date "+%s"` --output text --query-string 'fields @message |filter (@logStream like /YYY/) | sort @timestamp desc | limit 20') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment