I get the following error when logs are sent via TCP. Everything works fine when using UDP, which seems to suggest that the logs are fine, i.e., it probably isn't related to log format or content.
Code:
Feb 21 18:23:34 192.168.1.3 RPY 0 0 . 0 52
Feb 21 18:23:34 192.168.1.3 Content-type: application/beep+xml
Feb 21 18:23:34 192.168.1.3 syslog-ng[7424]: Error processing log message: <greeting />
Feb 21 18:23:34 192.168.1.3 END
May be i am missing something in the configuration?
Hope to hear from you all on this...
Thanks in advance
--edit---details
/etc/syslog-ng/syslog-ng.conf
---
# Sources
source s_netT { tcp(ip(192.168.1.5)port(601)); };
source s_netU { udp(ip(192.168.1.5)port(514)); };
# Destinations
###############FOR TCP INPUT#####################
destination d_netT { file("/var/log/tcpfile.log"); };
###############FOR UDP INPUT#####################
destination d_netU { file("/var/log/udpfile.log"); };
##############FOR UDP/TCP INPUT##################
filter f_netU { host( "192.168.1.3" ); };
# Log paths
log { source(s_netT); filter(f_netU); destination(d_netT); };
log { source(s_netU); filter(f_netU); destination(d_netU); };