On Mon, 18 Dec 2006 18:49:34 -0800, Quinn Comendant wrote:
> Are there any others?

Just to keep this info in the same thread, here is one that I had previously 
mentioned...

John M. Simpson wrote:

This is a script that i run as a cron job every hour. it goes through 
/service/*/log/main and finds all of the "@*.[su]" files, runs them through 
tai64nlocal, and adds them to /var/log/{service}.YYYY-MM-DD automatically... 
which gives me per-day log files for all of the services i manage using 
daemontools.

if you run it with the "-a" parameter, it sends an ALRM signal to each multilog 
process and waits two seconds before looking for "@*.[su]" files, so it can 
"force a cut-off at midnight" if you have a need for such a thing.

i also run all of my multilog processes with "n1024 s1048576". none of my 
services come anywhere close to 1GB per hour of log data, so i've never been an 
issue- although if i did have a high-traffic service, i would raise these 
parameters accordingly, or just run this script more often.

i know it's not as automatic as you would like, but it's already written, it 
works, and it's free (in the GPLv2 sense of the word.)

http://qmail.jms1.net/scripts/convert-multilog

--------------------------------------------------
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/           <[EMAIL PROTECTED]> |

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to