On Sun, 16 Aug 2009, LuKreme wrote:

> On 26-Jun-2009, at 09:28, Jiří Hlinka wrote:
>> beside pflogsumm there is postfix-logwatch and amavis-logwatch:
>> http://www.mikecappella.com/logwatch/
>
> Sorry for pulling a post out of the wayback machine, but how do people  
> through multiple logs at posftix-logwatch when they are compressed?
>
> all my logs are rotated into bz2 archives, for example.
>
> bzcat | postfix-logwatch doesn't seem to work, it really really wants a 
> filename passed to it.

No, it doesn't "really really" want a filename.  If you RTFM:

 The postfix-logwatch utility reads from STDIN or from the named Postfix
 logfile. Multiple logfile arguments may be specified, each processed in
 order.

So something like the following command should be sufficient:

 % bzcat /var/log/maillog.*.bz2 | postfix-logwatch

If you have more questions on this, follow up on the logreporters[1] mailing
list with a better problem description than "doesn't seem to work".

[1] http://lists.mikecappella.com/mailman/listinfo/logreporters

-- 
Sahil Tandon <sa...@tandon.net>

Reply via email to