Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hectorperez/e057370fc522f5b0a210 to your computer and use it in GitHub Desktop.
Save hectorperez/e057370fc522f5b0a210 to your computer and use it in GitHub Desktop.
filter Rails logs which duration > 500 ms
cat production.log | grep duration | awk 'a=$7,gsub(/[a-z=]/,"",a) {print a, $1, $2}' | awk '{if ($1 > 500) print $1, $2, $3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment