Skip to content

Instantly share code, notes, and snippets.

@angry-dan
Created February 3, 2015 13:01
Show Gist options
  • Select an option

  • Save angry-dan/31ae9d110d13bc898705 to your computer and use it in GitHub Desktop.

Select an option

Save angry-dan/31ae9d110d13bc898705 to your computer and use it in GitHub Desktop.
Bash one-liners for reading and analyzing Acquia's log files.
# Find and print all PHP errors that found their way into watchdog, sorted by number of ocurrences
zgrep '|php|' drupal-watchdog.log* | cut -d'|' -f9 | sed -r "s/(.*?)request_id\=\"[0-9a-f-]*\"/\1/" | sort | uniq -c | sort -rn | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment