Skip to content

Instantly share code, notes, and snippets.

@davepullig
Created October 25, 2021 10:16
Show Gist options
  • Save davepullig/595c9e3ff78d609fb7e69f5f335f846f to your computer and use it in GitHub Desktop.
Save davepullig/595c9e3ff78d609fb7e69f5f335f846f to your computer and use it in GitHub Desktop.
Totals for hit/miss/bypass etc when using DM's modified log format
awk '{print $3}' ~/logs/access.log | sort | uniq -c | sort -r
@davepullig
Copy link
Author

Most common un-cached URLs: grep ' MISS \| - - ' access.log | cut -d " " -f 8 | sort | uniq -c | sort -n -r -s | head -n 20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment