Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] syslog spits out everything to the active console
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Mon Oct 23, 2006 9:01 am    Post subject: [SOLVED] syslog spits out everything to the active console Reply with quote

Hi,

I must have made some kinda silly mistake, because syslog-ng now displays everything in the active console (tty), as well as in /var/log/messages. My 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);
   stats(43200);
};

source src {
   unix-stream("/dev/log");
   internal();
   pipe("/proc/kmsg");
};

# cron
destination cron { file("/var/log/cron.log"); };
filter f_cron { facility(cron); };
log { source(src); filter(f_cron); destination(cron); };

filter f_messages {
   not facility(cron);
};

# default logging
log { source(src); filter(f_messages); destination(messages); };
destination messages { file("/var/log/messages"); };

destination console_all { file("/dev/tty12"); };
log { source(src); destination(console_all); };


If anyone sees something weird, please let me know :)


Last edited by Errtu on Fri Oct 27, 2006 1:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
kadeux
Tux's lil' helper
Tux's lil' helper


Joined: 21 Nov 2005
Posts: 103

PostPosted: Mon Oct 23, 2006 1:00 pm    Post subject: Reply with quote

Hi,

maybe it's not syslog's fault. One release of sys-apps/baselayout had a typo for the variable RC_DMESG_LEVEL in /etc/conf.d/rc. It's already fixed in the newest stable version since sys-apps/baselayout-1.12.5-r2 (if I remember the version correctly). Check your settings:
Code:
# grep -C 1 -i 'rc_dmesg' /etc/conf.d/rc

# RC_DMESG_LEVEL sets the level at which logging of messages is done to the
# console.  See dmesg(8) for more info.

RC_DMESG_LEVEL="1"


The incorrect version named this variable "RC_DMESG_LOGLEVEL" instead of "RC_DMESG_LEVEL".

HTH
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Mon Oct 23, 2006 1:47 pm    Post subject: Reply with quote

Hi, and thanks for the reply. I just noticed that i didn't update 'world' for quite some time, and one of the packages that needed updating was the baselayout package. Updating now, but i have alot of confidence now that i read your post. Thanks!
Back to top
View user's profile Send private message
girona
n00b
n00b


Joined: 20 Apr 2004
Posts: 20

PostPosted: Mon Oct 23, 2006 7:34 pm    Post subject: Seems to be random Reply with quote

I have had this happen to me a couple of times. I think it could be due to the loading of services in parallel, but for some reason /dev/log wasnt created. Before I rebooted I started the service from the login prompt and it worked so must have been the order it started, however I rebooted and it worked fine. One of lifes little mysteries.

Good luck

Tom
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Tue Oct 24, 2006 9:06 am    Post subject: Reply with quote

Hi,

Unfortunately this didn't help. I've checked out /etc/conf.d/rc but the correct line appears:
Code:
RC_DMESG_LEVEL="1"


I tested it by opening this configuration file on tty1 and logging in in tty2. I then see the messages about a login in tty1, completely screwing up my screen :|

Just to make sure all configuration changes were active, i rebooted the box.
Back to top
View user's profile Send private message
Errtu
Apprentice
Apprentice


Joined: 12 Nov 2002
Posts: 155
Location: Brazil

PostPosted: Fri Oct 27, 2006 7:18 am    Post subject: Reply with quote

Nobody knows?


edit: to make sure it wasn't syslog, i have copied syslog-ng.conf from another box that works ok. So what the hell is it then? :)
edit2: i fixed it :D i also caused it :roll: by adding a stupid line in inittab ...
Back to top
View user's profile Send private message
Quoti
n00b
n00b


Joined: 18 Apr 2006
Posts: 8
Location: Amberg, Germany

PostPosted: Sat Jan 06, 2007 11:05 am    Post subject: Reply with quote

thank you :-)

for me the entry in the /etc/conf.d/rc helped a lot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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