Page 1 of 1

Sending syslog with SSL between NLS & Linux server

Posted: Sun Jun 11, 2017 11:49 pm
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...)?

Re: Sending syslog with SSL between NLS & Linux server

Posted: Mon Jun 12, 2017 10:32 am
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>

Re: Sending syslog with SSL between NLS & Linux server

Posted: Wed Jun 14, 2017 5:47 am
by bennspectrum
Hi team,

I solved it, thx!