Skip to content

Instantly share code, notes, and snippets.

@frankwese
Created November 18, 2021 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankwese/68610e981e6b17b5b311fcbdb64180c2 to your computer and use it in GitHub Desktop.
Save frankwese/68610e981e6b17b5b311fcbdb64180c2 to your computer and use it in GitHub Desktop.
aws cloudwatch logs nginx access logs
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