Sunday, January 1, 2012

How To Print Unique IP Addresses from Apache Log File

I like to use the command line for simple tasks and this is something I've used as a basis for scripts in the past.

# Print unique ip addresses from apache logfile
cut -f 1 -d " "  [APACHE LOG FILE] | sort -nu

No comments:

Post a Comment