Skip to content

Instantly share code, notes, and snippets.

@imrodrigoalves
Forked from viezel/log query
Last active January 8, 2022 10:37
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 imrodrigoalves/59d5e80fbefcf1718bdeae469bd6b40d to your computer and use it in GitHub Desktop.
Save imrodrigoalves/59d5e80fbefcf1718bdeae469bd6b40d to your computer and use it in GitHub Desktop.
Laravel Vapor - Cloudwatch insights logs
fields @message | filter @log like "$log_group" | filter @message like /(?i)$search/
| filter @message not like "START RequestId"
| filter @message not like "END RequestId"
| filter @message not like "REPORT RequestId"
| filter @message not like "Starting FPM Process..."
| filter @message not like "Ensuring ready to start FPM"
| filter @message not like "Preparing to boot FPM"
| filter @message not like "NOTICE: ready to handle connections"
| filter @message not like "NOTICE: fpm is running"
| filter @message not like "NOTICE: Terminating"
| filter @message not like "NOTICE: exiting, bye-bye!"
| filter @message not like /(?i)No scheduled commands are ready to run(?)/
| filter @message not like /(?i)Injecting secret(?)/
| filter @message not like "Preparing to add secrets to runtime"
| filter @message not like "Caching Laravel configuration"
| filter @message not like "Loaded Composer autoload"
| filter @message not like "Executing warming requests..."
| filter @message not like "Creating storage directory"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment