View previous topic :: View next topic |
Author |
Message |
Horus107 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 29 Mar 2004 Posts: 230
|
Posted: Thu Sep 14, 2006 3:19 pm Post subject: syslog echoes to console |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Kosmas Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/TV Stars/spock1.jpg)
Joined: 14 Sep 2006 Posts: 280 Location: Greece
|
Posted: Thu Sep 14, 2006 6:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dashnu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Thu Sep 14, 2006 6:55 pm Post subject: |
|
|
/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 |
|
![](templates/gentoo/images/spacer.gif) |
Horus107 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 29 Mar 2004 Posts: 230
|
Posted: Thu Sep 14, 2006 7:05 pm Post subject: |
|
|
It was already set to 1.
Or what is the value I should set it to?
Florian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BMRMorph n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Apr 2006 Posts: 6
|
Posted: Thu Sep 14, 2006 9:03 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
zAfi Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Quake3/quake3_uriel.gif)
Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Thu Sep 14, 2006 10:48 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Horus107 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 29 Mar 2004 Posts: 230
|
Posted: Fri Sep 15, 2006 7:26 am Post subject: |
|
|
Has anyone already filed a bug report for that? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Horus107 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 29 Mar 2004 Posts: 230
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dashnu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Fri Sep 15, 2006 12:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
XenoTerraCide Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/20669934541e32c233eb9f.gif)
Joined: 18 Jan 2004 Posts: 1418 Location: MI, USA
|
Posted: Sat Sep 16, 2006 12:22 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dashnu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sat Sep 16, 2006 12:44 am Post subject: |
|
|
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* ![Smile :)](images/smiles/icon_smile.gif) _________________ write quit bang |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
XenoTerraCide Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/20669934541e32c233eb9f.gif)
Joined: 18 Jan 2004 Posts: 1418 Location: MI, USA
|
Posted: Sat Sep 16, 2006 12:53 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
dashnu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 Jul 2004 Posts: 703 Location: Casco Maine
|
Posted: Sat Sep 16, 2006 1:08 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
XenoTerraCide Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/20669934541e32c233eb9f.gif)
Joined: 18 Jan 2004 Posts: 1418 Location: MI, USA
|
Posted: Sat Sep 16, 2006 1:09 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
BMRMorph n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Apr 2006 Posts: 6
|
Posted: Sun Sep 17, 2006 9:23 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Horus107 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 29 Mar 2004 Posts: 230
|
Posted: Sun Sep 17, 2006 9:33 pm Post subject: |
|
|
The bug seems to be fixed. (at least the report is marked as such) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
BMRMorph n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Apr 2006 Posts: 6
|
Posted: Sun Sep 17, 2006 9:37 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|