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...)?
Sending syslog with SSL between NLS & Linux server
-
bennspectrum
- Posts: 30
- Joined: Wed May 11, 2016 4:24 am
Re: Sending syslog with SSL between NLS & Linux server
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>
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
Hi team,
I solved it, thx!
I solved it, thx!