syslog.conf console logging question
Hi,
i installed shorewall and it writes a lot of messages to the console.
I tried to edit syslog.conf and then running /etc/init.d/sysklogd restart
to remove all the clutter that goes to the console, but i failed
miserably.
What i would want to do, is to log the messages that now appear
on the console i'm working on to say /dev/tty6. This should
always be the case and when i'm logged in on say /dev/tty4, it
shouldn't log to this console.
I have even tried to comment the "*.emerg *" and the last
2 blocks of code ( *1* and *2* ) but the kernel messages
taht the shorewall firewall generates where still logged to my
console.
How can i solve this?
Also, i'm not sure what an xconsole is?
Thanks (full syslog.conf file included)
=======================================
# /etc/syslog.conf Configuration file for syslogd.
#
# For more information see syslog.conf(5)
# manpage.
#
# First some standard logfiles. Log by facility.
#
auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
uucp.* /var/log/uucp.log
#
# Logging for the mail system. Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info -/var/log/mail.info
mail.warn -/var/log/mail.warn
mail.err /var/log/mail.err
# Logging for INN news system
#
news.crit /var/log/news/news.crit
news.err /var/log/news/news.err
news.notice -/var/log/news/news.notice
#
# Some `catch-all' logfiles.
#
*.=debug;\
auth,authpriv.none;\
news.none;mail.none -/var/log/debug
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
#
# Emergencies are sent to everybody logged in.
#
# commenting this didn't help
*.emerg *
#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
# (1) i tried commenting this but that didn't seem to help
#all messages should go to /dev/tty6
daemon.*,mail.*;\
news.=crit;news.=err;news.=notice;\
*.=debug;*.=info;\
*.=notice;*.=warn /dev/tty6
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
# you must invoke `xconsole' with the `-file' option:
#
# $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
# busy site..
#
# (2) i tried commenting this but that didn't seem to help
daemon.*;mail.*;\
news.crit;news.err;news.notice;\
*.=debug;*.=info;\
*.=notice;*.=warn |/dev/xconsole
Reply to: