Forward to syslog server


Recommended Posts

  • 2 weeks later...
  • 2 months later...
  • 1 month later...

I forward to Splunk (free version) in a Docker on another machine.

 

I have the following content in /boot/config/go:

SERVER="your-server-hostname-or-ip-here:1514"
/usr/bin/sed --in-place "s/^#\*\.\* \@\@/\*\.\* \@\@$SERVER/" /etc/rsyslog.conf 
/etc/rc.d/rc.rsyslogd reload

Hope that helps someone. I'm sure the sed string work can be greatly simplified. Feel free to offer better alternatives.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.