webalizer and logresolve

Bit of a delimna here:

I have 'HostnameLookups Off' set in httpd.conf but I want resolved names when I inspect http://domain.com/stats/

So I need to run logresolve before running webalizer. But if I use something like this:

Code:
logresolve  -s /var/tmp/log.hash < logs/access > logs/access.resolved
mv logs/access.resolved logs/access -f
then I may loose entries in the log file written during the time logresolve was doing its work.

How can I do this more gracefully?

 

 

 

 

Top