View previous topic :: View next topic |
Author |
Message |
starrbuck Tux's lil' helper
Joined: 04 Apr 2005 Posts: 138 Location: North Texas
|
Posted: Wed Oct 11, 2006 2:57 pm Post subject: Console messages [solved] |
|
|
I am getting messages on the console that I do not desire to be there.
For example:
Code: | su(pam_unix)[3787]: session opened for root by (uid=1000)
sshd(pam_unix)[3842]: session opened for user starrbuck by (uid=1) |
How can I not have these printed to the console? _________________ Gentoo Linux is groovy, baby! Yeah!
Last edited by starrbuck on Tue Oct 17, 2006 6:00 pm; edited 1 time in total |
|
Back to top |
|
|
jasealpers n00b
Joined: 02 Jan 2006 Posts: 29
|
Posted: Wed Oct 11, 2006 5:38 pm Post subject: |
|
|
Do you have a system logger installed and running (sysklogd, syslog-ng, metalog, etc)? If so, please post the config for it. |
|
Back to top |
|
|
starrbuck Tux's lil' helper
Joined: 04 Apr 2005 Posts: 138 Location: North Texas
|
Posted: Tue Oct 17, 2006 2:39 pm Post subject: |
|
|
syslog-ng.conf:
Code: | # $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo,v 1.5 2005/05/12 05:46:10 mr_bones_ Exp $
#
# Syslog-ng default configuration file for Gentoo Linux
# contributed by Michael Sterrett
options {
chain_hostnames(off);
sync(0);
# The default action of syslog-ng 1.6.0 is to log a STATS line
# to the file every 10 minutes. That's pretty ugly after a while.
# Change it to every 12 hours so you get a nice daily update of
# how many messages syslog-ng missed (0).
stats(43200);
};
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
destination messages { file("/var/log/messages"); };
# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); };
# ...if you intend to use /dev/console for programs like xconsole
# you can comment out the destination line above that references /dev/tty12
# and uncomment the line below.
#destination console_all { file("/dev/console"); };
log { source(src); destination(messages); };
log { source(src); destination(console_all); }; |
_________________ Gentoo Linux is groovy, baby! Yeah! |
|
Back to top |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Tue Oct 17, 2006 4:56 pm Post subject: |
|
|
The last line of your config is your problem. |
|
Back to top |
|
|
starrbuck Tux's lil' helper
Joined: 04 Apr 2005 Posts: 138 Location: North Texas
|
Posted: Tue Oct 17, 2006 5:59 pm Post subject: Console messages [solved] |
|
|
Thanks! _________________ Gentoo Linux is groovy, baby! Yeah! |
|
Back to top |
|
|
|