Skip to content

DevOps NY

Figuring things out, to get it done!

Tag: logresolve

Posted on May 2, 2011March 4, 2013

Analyzing Apache Log Files

List Client IP and Count Hits

awk -F'[ “]+’ ‘$7 == “/” { ipcount[$1]++ } END { for (i in ipcount) { printf “%15s – %d\n”, i, ipcount[i] } }’ access.log

 

List Client IP and RDNS

cat access.log | awk ‘{print $1}’ | logresolve

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Tweet
  • Click to share on Reddit (Opens in new window) Reddit
  • More

Like this:

Like Loading...
Proudly powered by WordPress
%d