Forwarding Logs from Nagios Log Server with RFC 3164 format

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Edwarddawson
Posts: 1
Joined: Fri Dec 24, 2021 4:15 pm

Forwarding Logs from Nagios Log Server with RFC 3164 format

Post by Edwarddawson »

I know it is possible to easily forward the Nagios Log Server logs to another destination as explained here: https://support.nagios.com/kb/article/f ... n-876.html.

However, the forwarded messages seem to be in JSON format when logged by a remote rsyslog server. Is there a simple way to format these messages into RFC 3164 format before being forwarded?

To me this implies an output filter. Perhaps there an existing filter that can do this or would it need to be defined from scratch?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Forwarding Logs from Nagios Log Server with RFC 3164 for

Post by ssax »

You should just be able to use the syslog output, by default it will use rfc3164:

https://www.elastic.co/guide/en/logstas ... yslog.html

Code: Select all

syslog {
       host => '<ip of destination server>'
       port => '514'
       }
Locked