LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-12-2009, 03:14 PM   #1
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
send syslog to remote server problem


I am stumped. I have tried this with syslog and syslog-ng and can't get it working. No firewall involved, client and server are on the same subnet.

I am trying to send logs for local0 to a remote syslog server. The remote server is working because it is receiving logs from other devices fine. I don't even see packets heading that way in tcpdump. Can anyone think of anything that would block this? Here's my line in syslog.conf:
local0.*<tab><tab><tab>@10.98.1.120
 
Old 09-12-2009, 03:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well what is using local0? If you use your same config but write to a local file instead of udp, does anything go into it?
 
Old 09-12-2009, 03:54 PM   #3
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
Sorry, yes, I have data go to it. I even redirected all logs to go to the remote host instead of /var/log/messages, still no luck. Even tested with logger.
 
Old 09-12-2009, 03:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
iptables then? Is this box on the local subnet? If so, is there an arp entry, or arps on the tcpdump?
 
Old 09-12-2009, 04:06 PM   #5
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Man 3 syslog -
LOG_LOCAL0 through LOG_LOCAL7 reserved for local use
 
Old 09-12-2009, 04:36 PM   #6
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
Ya, I have an arp entry and iptables is disabled:

omajelut04 (10.98.1.120) at 00:12:3F:FF:63:CB [ether] on eth0


[root@omajelsflow01 snort]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Old 09-12-2009, 04:41 PM   #7
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Suncoast View Post
Man 3 syslog -
LOG_LOCAL0 through LOG_LOCAL7 reserved for local use
That's interesting. I use local0-7 as a destination for other servers without a problem. Either way, I redirected all other logs to the remote server without any luck:
*.info;mail.none;news.none;authpriv.none;cron.none @10.98.1.120
 
Old 09-12-2009, 11:46 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by td3201 View Post
That's interesting. I use local0-7 as a destination for other servers without a problem. Either way, I redirected all other logs to the remote server without any luck:
*.info;mail.none;news.none;authpriv.none;cron.none @10.98.1.120
It's not interesting really... "local use" just means it's your own discretion, rather than standards like kernel and mail.

Can't think of anything else to check off hand right now... you can ping the remote machine too, right?

I'm a big fan of syslog-ng so would personally be looking to configure that again.
 
Old 09-13-2009, 09:51 AM   #9
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
Ya, I like syslog-ng too. That's what I use on my central syslog server. This server in particular just won't forward to a remote host and can't figure it out. I might reboot three times to see what happens.
 
Old 09-13-2009, 11:36 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
third time's the charm.

Really bafflinf me for sure. If it's not iptables, could it possibly be ebtables instead? I'd really doubt it if you're not already aware. Oh, what about SELinux maybe? anything in dmesg? messsages? secure? if you flush your arp table completely, and then send a test with logger, do you see the arp occur immediately then?
 
Old 09-13-2009, 05:00 PM   #11
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
Ok, well, we have Ironview/INM running on that box. It opens up a syslog server (for some reason) on 514/udp. Even though the system syslog is not configured to "listen" on 514/udp, it must use that as it's source port for sending logs across the network. That's my guess anyways.

I can't configure syslog-ng to use a specific source port to send the messages for UDP. For TCP, I can specify localport. From this, it is using 514/udp to send the messages:
17:00:00.952697 IP 10.98.1.30.syslog > omajelut04.syslog: SYSLOG local0.info, length: 155
 
Old 09-14-2009, 09:20 AM   #12
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Original Poster
Rep: Reputation: 30
I just disabled the syslog server in INM and now life is good.
 
  


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
Problem with Remote Syslog Server Operation kaplan71 Linux - Software 16 08-17-2011 11:51 AM
Remote Syslog-np server Cheza Linux - Server 2 11-07-2007 07:33 PM
loging syslog messages to a Remote Server nevxille Linux - Newbie 1 10-18-2006 06:12 AM
Syslog to a Remote Server Antonius_Block Linux - Software 1 05-06-2006 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:41 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