Skip to content

Instantly share code, notes, and snippets.

@krasnuydyx
Created March 31, 2020 20:15
Show Gist options
  • Save krasnuydyx/4b9f1ffe87aee0c720fe5f23549d1d0c to your computer and use it in GitHub Desktop.
Save krasnuydyx/4b9f1ffe87aee0c720fe5f23549d1d0c to your computer and use it in GitHub Desktop.
awk -vDate=`date -d'now-2 hours' +[%Y-%m-%dT%H:%M:%S` '$4 > Date {print $1}' access.log | sort | uniq -c | sort -n | tail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment