Skip to content

Instantly share code, notes, and snippets.

@codingjester
Created August 22, 2014 14:22
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 codingjester/483685c30f547dfac5a3 to your computer and use it in GitHub Desktop.
Save codingjester/483685c30f547dfac5a3 to your computer and use it in GitHub Desktop.
Awk one-liner for grabbing haproxy requests (using httplog) longer than 1 second.
# You can change 1000 to whatever you want
awk '{n=split($8, b,"/"); if(b[n] >= 1000) print}' your_haproxy_log.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment