"shajain" <[EMAIL PROTECTED]> wrote:
>I need to keep logs of qmail atleast for 60 days, but when I check in
>/var/log/qmail it shows the logs of only past three-four days. I
>would be very thankful if somebody can tell me how to increase the
>entry for no. of days for which qmail keeps the logs.
Assuming you're using cyclog, the total size of the logs is determined
by two arguments: -s (the size of each file, default 104000) and -n
(the number of log files, default 10). So, by default, cyclog keeps
about a megabyte of logs. If you wanted 20 megabytes of logs, you
could do something like:
blah blah blah ... | cyclog -n20 -s1004000 /var/log/qmail
There's no way with cyclog to keep a specified duration of logs.
-Dave