Skip to content

Instantly share code, notes, and snippets.

@elchappo
Created November 2, 2012 17:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elchappo/4002989 to your computer and use it in GitHub Desktop.
Save elchappo/4002989 to your computer and use it in GitHub Desktop.
Search nginx access log for IP and url
cat /etc/nginx/logs/access.log | awk '{print $1 " " $4 " " $5 " " $6 " " $7}' | grep 'url'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment