Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog echoes to console
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Horus107
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 230

PostPosted: Thu Sep 14, 2006 3:19 pm    Post subject: syslog echoes to console Reply with quote

Hello,
since the recent baselayout update all syslog events are echoed to the console which is pretty ugly. For example, when I plug in an usb device all messages produced by the plug in event appear on the console. My system logger is syslog-ng with unchanged configuration. I've also taked a look at the configs of syslog-ng but noticed nothing like that, just the echo to tty12.

What's wrong?

Thanks,

Florian
Back to top
View user's profile Send private message
Kosmas
Apprentice
Apprentice


Joined: 14 Sep 2006
Posts: 276
Location: Greece

PostPosted: Thu Sep 14, 2006 6:51 pm    Post subject: Reply with quote

Does syslog service run? When syslog deamon is stopped everything is dumped in the current console.

Start it by
Code:
/etc/init.d/syslog-ng start


and make it start at system startup
Code:

rc-update add syslog-ng default
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Thu Sep 14, 2006 6:55 pm    Post subject: Reply with quote

/etc/conf.d/rc

Code:

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

RC_DMESG_LOGLEVEL="1"

_________________
write quit bang
Back to top
View user's profile Send private message
Horus107
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 230

PostPosted: Thu Sep 14, 2006 7:05 pm    Post subject: Reply with quote

It was already set to 1.

Or what is the value I should set it to?

Florian
Back to top
View user's profile Send private message
BMRMorph
n00b
n00b


Joined: 28 Apr 2006
Posts: 6

PostPosted: Thu Sep 14, 2006 9:03 pm    Post subject: Reply with quote

i tried a little bit but in my eyes there is no way to disable this behavior...
it seem that the RC_DMESG_LOGLEVEL value are ignored.
i think 1 should be nothing is dumped to console exept the panic messages and 8 should be all...
i could not realy realize a differenz...

btw, i thin the whole baselayout is a little bit strang in the last time...
first the output of interface starting went away (it just dump the net.lo but nothing about eth0, but it is up and running after all) and now the dump of the syslog...it's a little bit contradictory (just my meaning, no reason to flame me...)
Back to top
View user's profile Send private message
zAfi
Apprentice
Apprentice


Joined: 08 Aug 2006
Posts: 220
Location: Austria

PostPosted: Thu Sep 14, 2006 10:48 pm    Post subject: Reply with quote

yep, I just updated and it happens here as well.

Commented it, nothing changes. And there's no information about that in the manpages of dmesg or syslog-ng. Any ideas??
_________________
Gentoo 2008.0/desktop | Kernel: 2.6.27-tuxonice | Arch: amd64 | KDE 3.5.9 | WU Wien |
----------
Share your kernel information @ http://klive.cpushare.com/
Back to top
View user's profile Send private message
Horus107
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 230

PostPosted: Fri Sep 15, 2006 7:26 am    Post subject: Reply with quote

Has anyone already filed a bug report for that?
Back to top
View user's profile Send private message
Horus107
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 230

PostPosted: Fri Sep 15, 2006 9:30 am    Post subject: Reply with quote

Ok, I've filed one: https://bugs.gentoo.org/show_bug.cgi?id=147661
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Fri Sep 15, 2006 12:35 pm    Post subject: Reply with quote

yea I agree it is rather annoying. I tried different settings with no go. dmesg man page does not help..
_________________
write quit bang
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Sep 16, 2006 12:22 am    Post subject: Reply with quote

Code:
vi /etc/syslog/syslog-ng.conf
Code:
# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); }; # << comment this line to keep from logging to console 12
also consider reading this Gentoo Security Handbook chapter 3 syslog-ng is in section d

[edit]hmm.... I think I read the initial post wrong. and I do not have this symptom that I'm aware of... oh well perhaps someone will find my link interesting.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Sat Sep 16, 2006 12:44 am    Post subject: Reply with quote

XenoTerraCide wrote:
Code:
vi /etc/syslog/syslog-ng.conf
Code:
# By default messages are logged to tty12...
destination console_all { file("/dev/tty12"); }; # << comment this line to keep from logging to console 12
also consider reading this Gentoo Security Handbook chapter 3 syslog-ng is in section d


I do not think that is the case.. My messages are coming from kernsrc (dmesg) No where in my syslog-ng.conf do I tell kernsrc messages to blast out to the console. I have src going to console_all but these are coming from /proc/kmsg.

Not to mention my logging was working as expected prior to the update.

That may 'fix' the problem but some further explination of why would be nice. Sounds like what you are saying it was not working correctly prior to the update.

**edit** sorry just read your *edit* :)
_________________
write quit bang
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Sep 16, 2006 12:53 am    Post subject: Reply with quote

hmm....
is having problems with link I have provided...
Code:
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
maybe the pipe has something to do with it? the link I provided doesn't have the pipe for /proc/kmsg in their example. also they have kernsrc source on another line... don't know if that would help.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
dashnu
l33t
l33t


Joined: 21 Jul 2004
Posts: 703
Location: Casco Maine

PostPosted: Sat Sep 16, 2006 1:08 am    Post subject: Reply with quote

Code:
#source where to read log
source src { unix-stream("/dev/log"); internal(); };
source kernsrc { file("/proc/kmsg"); };


I don't pipe mine. I can't remeber why I ended up changing it but I did for one reason or another.

I think it is all based on the new setting in /etc/conf.d/rc and the code built around it.
_________________
write quit bang
Back to top
View user's profile Send private message
XenoTerraCide
Veteran
Veteran


Joined: 18 Jan 2004
Posts: 1418
Location: MI, USA

PostPosted: Sat Sep 16, 2006 1:09 am    Post subject: Reply with quote

probably... funny that mine hasn't changed.
_________________
I don't hang out here anymore, try asking on http://unix.stackexchange.com/ if you want my help.
Back to top
View user's profile Send private message
BMRMorph
n00b
n00b


Joined: 28 Apr 2006
Posts: 6

PostPosted: Sun Sep 17, 2006 9:23 pm    Post subject: Reply with quote

there is a simple workaround for that...
a friend points me on that (thx to TaureC)
the answer is just 2 or 3 lines above in the explanation of this var :)

just change the RC_DMESG_LOGLEVEL="1" to RC_DMESG_LEVEL="1"


Last edited by BMRMorph on Sun Sep 17, 2006 9:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Horus107
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 230

PostPosted: Sun Sep 17, 2006 9:33 pm    Post subject: Reply with quote

The bug seems to be fixed. (at least the report is marked as such)
Back to top
View user's profile Send private message
BMRMorph
n00b
n00b


Joined: 28 Apr 2006
Posts: 6

PostPosted: Sun Sep 17, 2006 9:37 pm    Post subject: Reply with quote

yes, i read it's fixed in the svn version...
but until this gets stable you can edit the conf.d/rc as an bugfix.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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