Sending syslog with SSL between NLS & Linux server

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
bennspectrum
Posts: 30
Joined: Wed May 11, 2016 4:24 am

Sending syslog with SSL between NLS & Linux server

Post by bennspectrum »

Hi team,

I saw this document on NLS website, and I followed the instructions. It's work, thanks!

https://assets.nagios.com/downloads/nag ... th-SSL.pdf

The question is, how do I setup encryption between Nagios Log Server and nxlog on Linux server(ex. CentOS, AIX, Hp-UX...)?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Sending syslog with SSL between NLS & Linux server

Post by cdienger »

I haven't setup nxlog on a Linux server yet, but I suspect the configuration of that client would be similar although you may need/want to setup a separate input for the Linux host. All this should entail is a new input filter like:

tcp {
port => 7778
type => "Linux- nxlogs"
ssl_cacert => "/etc/pki/tls/certs/rootCA.pem"
ssl_cert => "/etc/pki/tls/certs/device-nls.crt"
ssl_key => "/etc/pki/tls/private/device-nls.key"
ssl_enable => true
format => 'json'
}

And the configuring nxlog to use the new port instead:

<Output out>
Module om_ssl
Host logstash-server-ip
Port 7778
CertFile /the/linux/path/to/device.crt
OutputType LineBased
AllowUntrusted True
</Output>
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bennspectrum
Posts: 30
Joined: Wed May 11, 2016 4:24 am

Re: Sending syslog with SSL between NLS & Linux server

Post by bennspectrum »

Hi team,

I solved it, thx!
Locked