Skip to content

Instantly share code, notes, and snippets.

@KamilMroczek
Last active August 27, 2015 17:44
Show Gist options
  • Save KamilMroczek/8f2d37b584d452e0bf69 to your computer and use it in GitHub Desktop.
Save KamilMroczek/8f2d37b584d452e0bf69 to your computer and use it in GitHub Desktop.
Log Entries Grep
# Search for request line
\d\d [A-Za-z]* \d\d\d\d \d\d:\d\d:\d\d.\d\d\d \d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d\+00:00 heroku router.*path="(.*)\?.*" host=.* request_id=.* fwd=".*" dyno=(.*) connect=.*ms service=(.*)ms status=.* bytes=.* Context
# Search for lines with CPU Load Avg
\d\d [A-Za-z]* \d\d\d\d \d\d:\d\d:\d\d.\d\d\d \d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d\+00:00 heroku.*source=(.*) dyno=(.*) sample#load_avg_1m=.* sample#load_avg_5m=.* sample#load_avg_15m=.* Context
# Search for Memory
\d\d [A-Za-z]* \d\d\d\d \d\d:\d\d:\d\d.\d\d\d \d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d\.\d\d\d\d\d\d\+00:00 heroku.*source=.* dyno=.* sample#memory_total=.* sample#memory_rss=.* sample#memory_cache=.* sample#memory_swap=.* sample#memory_pgpgin=.*pages sample#memory_pgpgout=.*pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment