Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Console messages [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
starrbuck
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2005
Posts: 135
Location: North Texas

PostPosted: Wed Oct 11, 2006 2:57 pm    Post subject: Console messages [solved] Reply with quote

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
View user's profile Send private message
jasealpers
n00b
n00b


Joined: 02 Jan 2006
Posts: 25

PostPosted: Wed Oct 11, 2006 5:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
starrbuck
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2005
Posts: 135
Location: North Texas

PostPosted: Tue Oct 17, 2006 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Tue Oct 17, 2006 4:56 pm    Post subject: Reply with quote

The last line of your config is your problem.
Back to top
View user's profile Send private message
starrbuck
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2005
Posts: 135
Location: North Texas

PostPosted: Tue Oct 17, 2006 5:59 pm    Post subject: Console messages [solved] Reply with quote

Thanks!
_________________
Gentoo Linux is groovy, baby! Yeah!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum