Re: iptables stopped logging to files, but shows in ring buffer

From: Michael Buesch
Date: Wed Feb 04 2004 - 08:16:15 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 04 February 2004 13:25, you wrote:
> On Tue, Feb 03, 2004 at 11:16:07PM -0500, Dan McGrath wrote:
> > I remembered that iptables logs seem to show in dmesg command in the
> > past, and sure enough, they are all showing up there no problems, but not in
> > any files, including dmesg.log.
>
> If they are in dmesg, but in no files, than this cannot be a kernel
> problem. It has to be a userspace (klogd/syslogd) issue.
>
> Thus, it is off-topic to lkml, and is not a problem of
> netfilter/iptables.

I had the same problem a while ago.
The cause was: I've a cron-job that cleans logfiles
via bash script. This bash script shuts down syslogd and restarts
it. After cleaning the logs, kernel-messages didn't reach userspace
anymore. The solution was to not only shut down syslogd but also
klogd.
So, try to restart klogd _and_ syslogd.

- --
Regards Michael Buesch [ http://www.tuxsoft.de.vu ]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAIPBgFGK1OIvVOP4RAolGAJ96DUqZh4daeKiDQc4YzV87FhlZ+wCfdnHY
WceebWbSfmTVfcdoEqXxF2g=
=0Y6M
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/