Thank you very well. I just did that and it works. My next problem is when I set my source to tcp that is source s_tcp { tcp(ip(0.0.0.0) port(1468)); }; i'm not getting any log but it should listen to a remote host on port 1468. I tried it in another syslog-ng server running in cygwin and I get the log.<br>
Here is my config:<br><br>#############################################################################<br># Default syslog-ng.conf file which collects all local logs into a<br># single file called /var/log/messages.<br>#<br>
<br>@version: 3.2<br>@include "scl.conf"<br><br>source s_local {<br> system();<br> internal();<br>};<br><br>source s_network {<br> udp();<br>};<br><br>source s_tcp {<br> tcp(ip(0.0.0.0) port(1468));<br>
};<br><br>filter f_mail {<br> host("192.168.10.60") and facility(17);<br>};<br><br>#filter f_sender {<br># match("SENDER");<br>#}<br><br>destination d_local {<br> file("/var/log/essai");<br>
};<br><br>destination d_user {<br> usertty("*");<br>};<br><br>destination d_mysql {<br> pipe("/tmp/mysql.pipe" template("INSERT INTO logs (host, facility, priority, level, tag, date, time, program, msg) VALUES ('$HOST', '$FACILITY', '$PRIORITY', '$LEVEL', '$TAG', '$YEAR-$MONTH-$DAY', '$HOUR:$MIN:$SEC', '$PROGRAM', '$MSG');\n") template-escape(yes));<br>
};<br><br>log {<br> source(s_tcp);<br><br> # uncomment this line to open port 514 to receive messages<br> #source(s_network);<br> filter(f_mail);<br> #filter(f_sender);<br> destination(d_local);<br> #destination(d_mysql);<br>
};<br>