Skip to content

Instantly share code, notes, and snippets.

@X0nic
Last active December 22, 2015 16:08
Show Gist options
  • Save X0nic/6496814 to your computer and use it in GitHub Desktop.
Save X0nic/6496814 to your computer and use it in GitHub Desktop.
Top ips hitting the access log
#! /bin/env bash
cat {{web_logs}}/access.log | sort -k1 | awk '{print $1}' | uniq -c | sort -k 1 -nr | head -n 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment