Skip to content

Instantly share code, notes, and snippets.

@Dmitry-Kucher
Last active February 4, 2020 09:59
Show Gist options
  • Save Dmitry-Kucher/a3d00a1eb26a0a891effd92cdceb9bcc to your computer and use it in GitHub Desktop.
Save Dmitry-Kucher/a3d00a1eb26a0a891effd92cdceb9bcc to your computer and use it in GitHub Desktop.
AWK analyze nginx access.log to see how many requests made for specific path grouped by referer
awk '($7 ~ /\/my\/awesome\/path/)' access.log | awk '{print $11}' | sort | uniq -c | sort -rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment