Re: Can't Keep Kernel Log Messages From Console
On Tue, Jul 29, 2003, Brian White wrote:
> > > I've been trying to stop kernel log messages (generally from iptables)
> > > from going to the console, and thus making the console unusable for login.
> > > I've tried different things, but they just keep popping up.
> > >
> > > I have "iptables" lines like:
> > >
> > > iptables -A WATCH -m limit -j LOG --log-level warn --log-prefix ACCEPT-
> > >
> > > and those message always appear on the console -- nothing else; just these
> > > messages. I've attached the "syslog.conf" file for more information. Any
> > > help is appreciated! Thanks!
> >
> > One way is to add `kernel.printk = 1 4 1 7` to /etc/sysctl.conf.
>
> This sounds like the best way, but I can't find any documentation on what
> the four numbers mean. Do you have a reference?
It's in the kernel source in
/usr/src/linux/Documentation/sysctl/kernel.txt or
/usr/src/linux/Documentation/proc.txt in older kernels.
>
> Other things suggested (but not posted to the list were):
>
> - add "-c 4" to KLOGD in /etc/init.d/klogd
> - echo 4 >/proc/sys/kernel/printk
Reply to: