Re: probably a dumb question....getting list of unique IP addresses from apache logs
Atom Smasher <[email protected]> Thu, 22 Dec 2011 12:15:56 +1300 (NZDT)
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <1112221210030.86985@smasher> |
On Thu, 22 Dec 2011, Robin Paulson wrote:
> i'm hosting a site who's domain is due for renewal. i'd like to know how
> many people have visited it in the last year, so i can judge if it's
> worth keeping. i realise using IP addresses isn't great, but it is the
> best i have. is there any way to check this via the apache logs? even
> for the last few months, i'm not sure how far back my logs go, it's a
> default ubuntu 10.04 setup
================
awk '{print $1}' /path/to/logfile | sort -u | wc -l
assuming that visitor IPs are the first token in the file, and you have
CLI, that's a crude way to count "unique visitors". of course it includes
search-bots and lots of other "visitors".
use "head" to find out when the log file starts.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"When one tries to rise above Nature one is
liable to fall below it."
-- Sherlock Holmes (Arthur Conan Doyle)
_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug