Skip to content

Instantly share code, notes, and snippets.

@coldclimate
Created August 6, 2013 09:53
Show Gist options
  • Select an option

  • Save coldclimate/6163245 to your computer and use it in GitHub Desktop.

Select an option

Save coldclimate/6163245 to your computer and use it in GitHub Desktop.
Find all errors, log out the time the happened, then hillbilly histogram them
grep -n "Connection refused" error.log-20130806 | awk '{print $2}' > errortimes.log
sort errortimes.log | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment