Re: probably a dumb question....getting list of unique IP addresses from apache logs

Tim McNamara <[email protected]> Thu, 22 Dec 2011 12:06:57 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <CA+YLJLva0RVukAps1OTohZr_Px1J-F1XUiwvq7VS5uaKcNK9AQ@mail.gmail.com>
cat /var/log/apache/access.log | awk '{ print $1 }' | sort -n | uniq -c


On 22 December 2011 12:00, Robin Paulson <[email protected]> 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
>
> cheers,
>
> --
> robin
>
> http://fu.ac.nz - Auckland's Free University
>
> _______________________________________________
> NZLUG mailing list [email protected]
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug