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.
Here is my config:
#############################################################################
# Default syslog-ng.conf file which collects all local logs into a
# single file called /var/log/messages.
#
@version: 3.2
@include "scl.conf"
source s_local {
system();
internal();
};
source s_network {
udp();
};
source s_tcp {
tcp(ip(0.0.0.0) port(1468));
};
filter f_mail {
host("192.168.10.60") and facility(17);
};
#filter f_sender {
# match("SENDER");
#}
destination d_local {
file("/var/log/essai");
};
destination d_user {
usertty("*");
};
destination d_mysql {
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));
};
log {
source(s_tcp);
# uncomment this line to open port 514 to receive messages
#source(s_network);
filter(f_mail);
#filter(f_sender);
destination(d_local);
#destination(d_mysql);
};