HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   webalizer and logrotate (http://www.howtoforge.com/forums/showthread.php?t=1392)

damaskinos 24th November 2005 18:02

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

falko 24th November 2005 22:18

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...

damaskinos 24th November 2005 22:53

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.

Ovidiu 24th November 2005 23:13

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)

falko 24th November 2005 23:16

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.


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

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