Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
show me nginx access.log 500's with surrounding 10 lines.
awk '{ print $9, $7}' access.log | grep -C 10 '^500'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.