Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
How to count unique visitors in an nginx access.logMike 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:
Replace 04/Nov/2009 with the date you'd like to count the number of unique visitors for.
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.
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

