How to make Webalizer work with rolling apache logs

apache-2.2log-fileswebalizer

I am using Webalizer to view my site stats, and it's working ok with one exception; I have log rolling configured so my log directory looks something like this:

/var/log/apache2$ ls  
access.log  
access.log.1  
access.log.2.gz  
access.log.3.gz  
...

Webalizer ends up only storing the last ~4 days each time it runs, so I only ever get a rolling window of stats rather than the full month. How can I make Webalizer process the full set of logs?

Best Answer

in webalizer.conf add:

Incremental     yes
IncrementalName webalizer.current

i point webalizer to already rotated file that will not change and execute it after the rotation:

LogFile /var/log/apache2/whatever.com-access.log.1
Related Topic