View previous topic :: View next topic |
Author |
Message |
Errtu Apprentice
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Mon Oct 23, 2006 9:01 am Post subject: [SOLVED] syslog spits out everything to the active console |
|
|
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 |
|
|
kadeux Tux's lil' helper
Joined: 21 Nov 2005 Posts: 103
|
Posted: Mon Oct 23, 2006 1:00 pm Post subject: |
|
|
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 |
|
|
Errtu Apprentice
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Mon Oct 23, 2006 1:47 pm Post subject: |
|
|
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 |
|
|
girona n00b
Joined: 20 Apr 2004 Posts: 20
|
Posted: Mon Oct 23, 2006 7:34 pm Post subject: Seems to be random |
|
|
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 |
|
|
Errtu Apprentice
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Tue Oct 24, 2006 9:06 am Post subject: |
|
|
Hi,
Unfortunately this didn't help. I've checked out /etc/conf.d/rc but the correct line appears:
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 |
|
|
Errtu Apprentice
Joined: 12 Nov 2002 Posts: 155 Location: Brazil
|
Posted: Fri Oct 27, 2006 7:18 am Post subject: |
|
|
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 i also caused it by adding a stupid line in inittab ... |
|
Back to top |
|
|
Quoti n00b
Joined: 18 Apr 2006 Posts: 8 Location: Amberg, Germany
|
Posted: Sat Jan 06, 2007 11:05 am Post subject: |
|
|
thank you
for me the entry in the /etc/conf.d/rc helped a lot |
|
Back to top |
|
|
|