Skip to content

Instantly share code, notes, and snippets.

@jordantrizz
Last active February 28, 2022 03:58
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 jordantrizz/61bcc28c0cf85db75a1ae1abe65a9ebe to your computer and use it in GitHub Desktop.
Save jordantrizz/61bcc28c0cf85db75a1ae1abe65a9ebe to your computer and use it in GitHub Desktop.
ls -aSd /var/log/nginx/* | grep access | egrep -v '^access.log$|staging|canary|gridpane|.gz' | xargs grep ' 4[0-9][0-9] ' | egrep -v 'xmlrpc.php' | awk '{ print $1" -- "$6" - "$10" - "$7" "$8" "$9}' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment