Call us Toll-Free:
1-800-218-1525
Email us

 Sponsors

How to count unique visitors in an nginx access.log

Mike Peters, 11-04-2009
This nifty one-liner will count the number of unique visitors in an NGinx web-server access.log file, for a given day:

grep "\[04/Nov/2009" access.log | cut -d" " -f1 | sort | uniq | wc -l

Replace 04/Nov/2009 with the date you'd like to count the number of unique visitors for.
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions