#1  
Old 24th November 2005, 19:02
damaskinos damaskinos is offline
Junior Member
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default webalizer and logrotate

I have webalizer and I succeeded in automating his execution. The problem is that I make a rotation of my logs with logrotate. I have many logs and many site. It is possible to have the stats in an automatic way on each logs of all the sites. I put incremental at yes in the configuration file of webalizer (webalizer.conf). In fact what I want is how to change this line automatically so as to carry out stats on all the logs.

LogFile C:/xampp/apache/logs/logs/access_ancien015.log
Reply With Quote
Sponsored Links
  #2  
Old 24th November 2005, 23:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by damaskinos
LogFile C:/xampp/apache/logs/logs/access_ancien015.log
Do you run Apache on Windows?

Can you describe more exactly what you want to do? It's not quite clear for me from your post...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th November 2005, 23:53
damaskinos damaskinos is offline
Junior Member
 
Join Date: Nov 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I make a rotation of my logs. They are named in this way: logfile_DDMMYYYY.log where DD is the day, MM is the month and YYYY is the year. I have a script bash which carries out webalizer automatically each day. But the problem is that it is necessary that I will manually change the line in webalizer.conf which gives the name of the log on which one i would like to do the stats. I want to know if there is a way of doing that automatically, so that the stats are made on all the files logs automatically.
Reply With Quote
  #4  
Old 25th November 2005, 00:13
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts
Default

I asked the same thing, I wanted stats from all the logs from allmy vhosts displayed together but as anyone had an answer to this I made another logfile , one complete logfile for all vhosts as I did not know how to unite all tzhese logfiles with changing names ( I am running on linux)

Last edited by Ovidiu; 25th November 2005 at 17:14.
Reply With Quote
  #5  
Old 25th November 2005, 00:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
 
Default

You can run webalizer from the shell and specify the logfile there. See
Code:
man webalizer
This means you could write a script that takes care of your changing logfile names and invokes webalizer.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.