Created
November 18, 2021 18:39
-
-
Save frankwese/68610e981e6b17b5b311fcbdb64180c2 to your computer and use it in GitHub Desktop.
aws cloudwatch logs nginx access logs
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
parse '* - - [*] "* * *" * * "*" "*" "*"' as host, dateTimeString, httpVerb, url, protocol, statusCode, bytes, referrer, agent, remoteAdress | |
| filter ispresent(url) | |
| filter agent not like /ELB-HealthChecker/ | |
#| filter statusCode = 499 | |
| sort @ingestionTime desc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment