Weblog entry #1 for nathanbullock

Question: syslog and terminal
Posted by nathanbullock on Wed 12 Jul 2006 at 15:28
Tags:
My webserver (Debian of course) is a machine that I very seldomly sit at, in fact I have to move a monitor down to the furnace room to even think about using it directly. But when I do I find it very difficult because there are constantly log messages scrolling by, things like 'eth0 blah blah', 'eth1 blah blah', etc, etc.

I am almost certain that these are the exact messages that go into the syslog but how do I make them stop being piped to the terminal window? (I am not using X just the raw terminal).

I think they only start showing up when I turn on firehol, but I am not sure about that part.

 

Comments on this Entry

Posted by Derevko (151.49.xx.xx) on Thu 13 Jul 2006 at 10:36
[ Send Message | View Weblogs ]
You cand find these messages in dmesg

[ Parent | Reply to this comment ]

Posted by choffee (195.149.xx.xx) on Thu 13 Jul 2006 at 12:37
[ Send Message ]
Run the following as root:

# setlogcons 8

This will send the kernel logging to tty8

# dmesg -n 1

Will set the level of thins logged to the console lower than 1 (Panic).

Also:

syslog will send emergency errors to all users when the line

*.emerg *

in /etc/syslog.conf this is done using the wall command or equivelent and running "mesg n" from a console should stop these.

If you have any other lines in the syslog config that refer to tty<n> or /dev/console then these may be the ones creating the messages.

klogd can also be setup with the -c command to stop console errors being sent to /dev/console I think.

You may want to send these to an alternate console using syslogd so add the following to /etc/syslog.conf.

daemon,mail.*;\
news.=crit;news.=err;news.=notice;\
*.=debug;*.=info;\
*.=notice;*.=warn /dev/tty8

john

[ Parent | Reply to this comment ]