Logfile and Report management With Logrotate, Analog and Report Magic

Hello everybodyLogfile and Report management With Logrotate, Analog and Report Magic !

I have been using Linux for my hosting purposes since now 2 years now. And I am quite pleased to work with it. I love managing all the system, and all the stuff. Logfile and Report management With Logrotate, Analog and Report Magic

With time passing, i was begining to wonder about saving ressources. Logfiles can be big.

For all my logfiles I use logrotate already. It does a great job about it... all that matters for me is about my clients hosts, with their website statistics using Analog/ReportMagic...

So, here's why I still have a wonder Logfile and Report management With Logrotate, Analog and Report Magic .

I need to rotate logs for my hosted clients though. Easy you would say. Me too. But the fact is that i want that all the reports (Generated with analog) and informations are kept within those reports.

Before I go through my question here is some details about my server :
<system>
Linux Red Hat 8.0
Using Kernel 2.4.18-27.8.0
analog-5.32-1
rmagic-2.21
logrotate-3.6.5-2
httpd-2.0.40-11.9
</system>


I use name based Virtual Hosts, each host has their own log files, i use the combined log, and an error log. They are all kept within /home/{username}/logs as usual.

Since I use Analog coupled with Report Magic I cannot do as instructed on the analog website about rotating the reports themselves. Logfile and Report management With Logrotate, Analog and Report Magic

So this is why I am asking... now, here's the question


THE QUESTION Logfile and Report management With Logrotate, Analog and Report Magic :
******************************************
How can I keep all the history within my Analog/ReportMagic
reports while Logrotate will (someday) erase old logfiles.
******************************************



I worked about this problem since days now, without any satisfying solution.

I guessed using Logrotate and putting a rotate like a huge rotate cycle
<Fileshow /etc/logrotate.d/userlogs>
/home/*/logs/*_log {
rotate 3000 Logfile and Report management With Logrotate, Analog and Report Magic
monthly
missingok
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
</Fileshow /etc/logrotate.d/userlogs>


But i guess its a stupid idea Logfile and Report management With Logrotate, Analog and Report Magic


I also tought using analog to rotate the report.dat file (the computer generated report by Analog, so that ReportMagic could use it)... but it didn't work too...



Any clues, help, advices will be quite appreciated.



Thank you!


________________
R. Boulanger

web developper, hostmaster

 

 

 

 

Top