View previous topic :: View next topic |
Author |
Message |
c65hsk n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Apr 2005 Posts: 9
|
Posted: Fri Aug 11, 2006 9:57 pm Post subject: High CPU usage by syslog-ng and huge /var/log/messages |
|
|
I compiled usb-storage verbose messages into my kernel, and they did help unravel my usb problems. But now I have syslog-ng using about 50% CPU, and several gigabytes a week of usb messages.
I would like to keep the option of turning on or off these messages without recompiling the kernel -- I don't need them now, but I might have another USB problem tomorrow.
Is there a way of temporarily turning off these messages? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hermanng Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 28 Jan 2004 Posts: 175 Location: Nussberg,Germany,Earth
|
Posted: Sat Aug 12, 2006 9:13 pm Post subject: |
|
|
Have a look at at the syslog-ng configuration file /etc/syslog-ng/syslog-ng.conf . You might want to change severity for the kernelmessages . On my machine the notation is Code: | source kernsrc { file("/proc/kmsg"); }; | In the log part, you can change the severity for kernel messages or switch them off completely (commenting them out). e.g. Code: | #log { source(kernsrc); filter(f_warn); filter(f_kern); destination(kern); }; |
If have still problems, just post your syslog-ng.conf _________________ Hermann |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|