Re: probably a dumb question....getting list of unique IP addresses from apache logs
Robin Paulson <[email protected]> Thu, 22 Dec 2011 12:22:23 +1300
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 22 Dec 2011 12:15:56 +1300 (NZDT), Atom Smasher wrote:
> 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.
cool, thanks atom and to tim
--
robin
http://fu.ac.nz - Auckland's Free University
_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug