Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
List all IP's hitting any domain
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
less /home/*/access-logs/* | awk '{print $1}' | sort | uniq -c | sort -n
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
List all IP's hitting POSTING to any domain
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
grep POST /usr/local/apache/domlogs/* | cut -d ':' -f 2 | cut -d ' ' -f 1 | sort | uniq -c | sort -n
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
View access logs for domain
=-+=-+=-+=-+=-+=-+=-+=-+=-+=
cat /home/%user%/access-logs/%domain% | grep "31/May/2018:02" | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.