Skip to content

Instantly share code, notes, and snippets.

@mercuriete
Last active May 17, 2019 12:11
Show Gist options
  • Save mercuriete/0a4327eaa956ab0e37e87cd94b9c40ef to your computer and use it in GitHub Desktop.
Save mercuriete/0a4327eaa956ab0e37e87cd94b9c40ef to your computer and use it in GitHub Desktop.
#!/bin/bash
# cat all access log
# take the url without query params (?param=value)
# group count and sort
zcat ssl_access.log.*.gz | cut -d'"' -f2 | cut -d' ' -f2 | cut -d'?' -f1 | sort | uniq -c | sort -g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment