LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2013, 07:12 AM   #1
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

Rep: Reputation: 27
syslog-ng tcp input error


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); };

Last edited by austinium; 02-22-2013 at 12:48 AM. Reason: added details
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent --set deadeyes Linux - Server 14 07-29-2009 04:30 AM
syslog and TCP noir911 Linux - Server 4 01-02-2008 01:44 AM
not work: iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp --dport 3306 -j DROP abefroman Linux - Security 1 07-18-2007 08:19 AM
TCP/IP Input Reflection Problem OliveOil Programming 2 05-30-2007 05:06 PM
TCP/IP Input Reflection Problem OliveOil Linux - Networking 1 05-29-2007 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration