<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
Does anyone has a clue why the processor is at 100 percent because of
syslog-ng?<br>
<br>
Tasks: 131 total, 3 running, 128 sleeping, 0 stopped, 0 zombie<br>
Cpu(s): 14.0%us, 39.6%sy, 0.0%ni, 46.4%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st<br>
Mem: 2060488k total, 385816k used, 1674672k free, 16132k buffers<br>
Swap: 2931820k total, 0k used, 2931820k free, 205248k cached<br>
<br>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
<br>
2522 root 20 0 3340 1032 616 R <b>100</b> 0.1 6:43.19 <b>syslog-ng</b>
<br>
3622 cosmin 20 0 44928 19m 13m S 6 1.0 0:02.06
gnome-panel
<br>
3017 root 20 0 303m 33m 10m S 1 1.7 0:04.83
Xorg
<br>
1 root 20 0 1904 780 564 S 0 0.0 0:01.37
init <br>
<br>
I have added in the syslog-ng.conf the folowing:<br>
<br>
<i>source s_internal {<br>
internal();<br>
};<br>
source s_local {<br>
file ("/proc/kmsg" log_prefix("kernel: "));<br>
unix-stream ("/dev/log");<br>
};<br>
<br>
destination d_localfile { file ("/home/cosmin/syslog.log"); };<br>
destination d_remote {udp ("192.168.53.248" port(514)); };<br>
log { source(s_local); destination(d_localfile); };<br>
log { source(s_internal); destination(d_localfile); };<br>
log { source(s_local); destination(d_remote); };</i><br>
<br>
<br>
<br>
</body>
</html>