I am searching for log file nirvana. Like most eggheads/geeks/techs I like to
see stats, I especially like to see mail stats. At one point I had a complete
log rolling solution, but that was before upgrading to the latest daemontools
et al.

At the moment I have multilog maintaining 10 x 5MB log files (what I was using
before multilog) for qmail-send and qmail-smtpd, each. (iow, 20 x 5MB log files
in total).

I think I would prefer log files rotated and reported on monthly. Ultimately my
logging solution would rotate logs every month, save a user defined number of
log files, and process each months log file as it is rolled over sending the
stats to me. The old logs would be saved so I could do longer range reporting,
quarterly, semi-annually, annually etc.

Does anyone else have any cookbook solutions for this? I was looking at
qfilelog and I guess I could rotate logs monthly by HUP'ing it from cron.

If I have my system set up per "Life with qmail" with 4 separate "run" files,
one for send, one for smtpd and one for each of their loggers, what is a clean
way of replacing multilog in the logger run files with qfilelog and having a
new log file created every month?

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s4999999 n10
/var/log/qmail/smtpd

-- 
Mark Drummond
Department of Computing Services
UNIX System Administrator

Reply via email to