#523605 logwatch: doesn't send email when there are lots of log files

#523605#5
Date:
2009-04-11 11:05:38 UTC
From:
To:
When there are a lot of files in /var/log/samba, logwatch fails to send email.

Cron sends the following email with the subject:
Cron <root@bottomquark> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

/etc/cron.daily/00logwatch:
Can't exec "/bin/sh": Argument list too long at /usr/sbin/logwatch line 853.
system 'cat /var/log/samba/log.0-6e844dd435084 /var/log/samba/log.0.0.0.0
+/var/log/samba/log.06bs1315 /var/log/samba/log.08bshyd0340
+/var/log/samba/log.192-168-21-198
[snip]
+/var/log/samba/log.your-zuirma1xml /var/log/samba/log.zebronics /var/log/samba/log.zucai
+/var/log/samba/log.zwergaldi  | /usr/bin/perl /usr/share/logwatch/scripts/logfiles/samba/applydate|
+/usr/bin/perl
+/usr/share/logwatch/scripts/logfiles/samba/removeheaders>/tmp/logwatch.vLUFVAB1/samba'
failed: -1
+at /usr/sbin/logwatch line 853.
run-parts: /etc/cron.daily/00logwatch exited with return code 7

#523605#8
Date:
2009-04-11 14:53:27 UTC
From:
To:
Hi!

I just got attached bug report. Can anyone take care of this one, please?

thanks
Willi

Vedant Lath schrieb:

#523605#11
Date:
2009-04-11 14:53:27 UTC
From:
To:
Hi!

I just got attached bug report. Can anyone take care of this one, please?

thanks
Willi

Vedant Lath schrieb:

#523605#16
Date:
2012-08-08 07:50:49 UTC
From:
To:
I just ran into this problem on squeeze.

	Stefan