Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
High CPU usage by syslog-ng and huge /var/log/messages
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
c65hsk
n00b
n00b


Joined: 22 Apr 2005
Posts: 9

PostPosted: Fri Aug 11, 2006 9:57 pm    Post subject: High CPU usage by syslog-ng and huge /var/log/messages Reply with quote

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
View user's profile Send private message
hermanng
Apprentice
Apprentice


Joined: 28 Jan 2004
Posts: 175
Location: Nussberg,Germany,Earth

PostPosted: Sat Aug 12, 2006 9:13 pm    Post subject: Reply with quote

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
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