Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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
share|improve this answer
    
Thanks, I'll try that out. Is there a way to force it to process the last month of compressed files so I don't have to wait another month? –  Simon Steele Apr 29 '10 at 11:05
1  
@Simon - i'm not sure if i get what you mean. you want to process all history? then zcat *.gz >> all and process once file called all. if processing in the middle of the month is what you mean - try running webalizer everyday on access.log - this [ i think ] should work too. –  pQd Apr 29 '10 at 11:57
    
Thanks, the first suggestion should work for me - I just wanted to re-process the history that I'd lost due to not having Incremental turned on. –  Simon Steele Apr 29 '10 at 12:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.