From: Roberto Nibali <ratz@tac.ch>
To: "Luis Fernando C. Talora" <talora-listas@talora.com.br>
Cc: netfilter@lists.netfilter.org
Subject: Re: iptables logging exhibites lines on current virtual console
Date: Mon, 09 Dec 2002 12:25:05 +0100 [thread overview]
Message-ID: <3DF47D91.1030209@tac.ch> (raw)
In-Reply-To: 1039380153.1095.13.camel@osbourn.intranet
Hello,
> Here's the problem: I've realized that many of the log lines generated
> are exhibited on current console: tty1, tty2, etc. Do anybody know the
> reason of that behavior?
Yes, the problem is that your system seems to be configured with a high
threshold value for printk in the proc-fs. Check it with:
cat /proc/sys/kernel/printk
The definitions can be found by reading ..linux/kernel/printk.c:
int console_printk[4] = {
DEFAULT_CONSOLE_LOGLEVEL, /* console_loglevel */
DEFAULT_MESSAGE_LOGLEVEL, /* default_message_loglevel */
MINIMUM_CONSOLE_LOGLEVEL, /* minimum_console_loglevel */
DEFAULT_CONSOLE_LOGLEVEL, /* default_console_loglevel */
};
An excerpt written by the excellent kernel hacker A. Rubini:
---
The four numbers in /proc/sys/kernel/printk control the ``verbosity'' level of
the printk kernel function. The first number in the array is console_loglevel:
kernel messages with priority less than or equal to the specified value will be
printed to the system console (i.e., the active virtual console, unless you've
changed it). This parameter doesn't affect the operation of klogd, which
receives all the messages in any case.
---
> Is there a way to change that?
echo "1" /proc/sys/kernel/printk
Another problem could arise (depending on the brokeness level of the
distribution you're using) when starting klogd with a wrong '-c #' value.
Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc
prev parent reply other threads:[~2002-12-09 11:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-08 20:42 iptables logging exhibites lines on current virtual console Luis Fernando C. Talora
2002-12-09 11:25 ` Roberto Nibali [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DF47D91.1030209@tac.ch \
--to=ratz@tac.ch \
--cc=netfilter@lists.netfilter.org \
--cc=talora-listas@talora.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.