[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Log files



John Kaufman wrote:
> 
> Wanted to know whether there is an app that can analyze my web logs by
> resolving the IP addresses into domain names. I don't need anything fancy,

This can be done on the fly by apache.
Turn on HostnameLookups in httpd.conf.

> just a monthly or daily report of who hit my site and what they looked at.
> That's it, no more.

Webalize.

Or, even simpler, a simple cron job in /etc/crontab:

# grep the web hits for interesting ones
59 23 * * * root /var/log/httpd/comblog `date` | mail weblog@xxxxxxxxxxxxxx
                              
where comblog is this:
#!/bin/sh
    grep $3/$2 /var/log/httpd/access | grep -v images  | grep -v .gif 

I.e. at 23:59 you pull out today's hits and strip out all the image hits.