Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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.
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.
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?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.