- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Rsyslog remote logging via tcp not working - plz h...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2013 11:19 PM
06-10-2013 11:19 PM
I have a "central syslog server" that listens on udp 1514 and tcp 1468
All SUSE Linux Servers are sending their logs to "central syslog server" via tcp(1468). SUSE servers uses
'syslog-ng', with following configuration
destination LOGHOST { tcp("IP.OF.Syslog.Server" port(1468)); };
log { source(src); destination(LOGHOST); };
But none of the rhel boxes are sending their logs over tcp 1468. rhel6.4 boxes are configured as:
*.info @@IP.OF.Syslog.Server:1468
it works when I configured the rhel boxes to send the logs over udp
*.info @IP.OF.Syslog.Server:1514
Please help
Solved! Go to Solution.
- Tags:
- syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013 08:33 AM
06-11-2013 08:33 AM
Re: Rsyslog remote logging via tcp not working - plz help
quite strange if I configure the box to send logs via tcp, merely running "/etc/init.d/rsyslog start" does not work for me. But running rsyslog in foreground and debug mode via following command works.
rsyslogd -d -n
Also running rsyslog in foreground and with debugging mode, has its own issue, i.e rhel box is only sending following logs to "central syslog server"
Message: (root) CMD (/etc/init.d/sshd restart)
while if I configure the rsyslog to send logs over udp it works properly i,e no need to run the rsyslog daemon in foreground and debug mode, also then rhel send all/every log to "central syslog server"
I think rsyslog(rhel6.4) works properly with udp only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2013 11:05 PM
06-12-2013 11:05 PM
SolutionDo you have SELinux in enforcing mode (as is the default) in your RHEL 6.4 environment?
The SELinux policy might be stopping a normally-started rsyslog daemon from using TCP, but running it in foreground and debug mode might be bypassing the restriction.
Check /var/log/audit/audit.log. If it indicates that rsyslog's TCP connections are being denied, it indicates that SELinux is causing your problem. In that case, you might have to add customized SELinux rules for custom rsyslog configurations like yours. The "audit2allow" command might be very helpful here: feed it the audit.log lines caused by the rsyslog TCP connection attempt, and it will produce the necessary SELinux rules to allow it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2013 03:22 AM
06-14-2013 03:22 AM
Re: Rsyslog remote logging via tcp not working - plz help
Thanks Matti_Kurkella for pointing the SELinux part, which I really didn't notice till reading your reply.
I didnt try audit2allow command yet.. I'll try it after a while, but I simply disabled the selinux, and logs started receiving on "central log server" via tcp ;-)
Thanks once again.