LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-31-2009, 11:35 AM   #1
dzollinger
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Rep: Reputation: 0
Webalizer and Compressed Logs


I am trying to find out if there is way to get webalizer to scan my compressed log files.

I know that webalizer will automatically do it if the log file name you enter in the conf file ends in gz.

The problem I have is that my apache logs are in the format of access.log. And when logrotate runs it compresses them and renames them access.log.1.gz with an incrementing number. This is throwing off webalizer.

Is there a way to make webalizer read these anyway? Or am I screwed and I need to redo all my apache log and logrotate settings?

I'm running RHEL5, Apache 2.2.

Thanks,
David
 
Old 08-31-2009, 07:13 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,175

Rep: Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683Reputation: 2683
webalizer shouldn't have a problem, the extension is still gz.
One option is to write a small script to run webalizer and uncompress the files on the fly

zcat access.log.1.gz|webalizer blah blah....
 
Old 09-01-2009, 09:53 AM   #3
dzollinger
LQ Newbie
 
Registered: Dec 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Perhaps I'm understanding webalizer wrong. If I have say 3 months worth of log files but have never run webalizer on them. Then one day, setup up and run webalizer on them, will it scan all the log files, or just the most recent one? How does it keep track of what is has and has not yet scanned?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating Apache logs and Webalizer xMeta4x Linux - Software 5 03-20-2009 12:42 AM
LXer: Splitting lighttpd Logs With vlogger And Creating Statistics With Webalizer LXer Syndicated Linux News 0 01-31-2008 05:11 PM
LXer: Tips and tricks: How can I use webalizer to process the logs of multiple virtua LXer Syndicated Linux News 0 09-24-2007 06:41 PM
webalizer - stopped updating my logs nickd63 Linux - Networking 1 12-13-2004 09:55 AM
Webalizer -c /etc/config1.conf Returns /etc/httpd/logs MadTurki Linux - General 1 03-31-2004 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration