Hi,
I set nxlog to send security log to a GrayLog input. It works perfectly using om_tcp but it fails with om_tls.
The nxlog says: “ERROR SSL certificate verification failed: unable to get issuer certificate (err: 2)”
While I need an encrypted communication, I am not interested in mutual authentication (just server-side auth).
Getting through the documentation ( https://nxlog.co/documentation/nxlog-user-guide/graylog.htm l), I created the following config file:
################
define ROOT /usr/bin
User nxlog
Group nxlog
Moduledir /usr/libexec/nxlog/modules
CacheDir /var/spool/nxlog/data
PidFile /var/log/nxlog/nxlog.pid
LogFile /var/log/nxlog/nxlog.log
LogLevel INFO
########################
OUTPUT DEFINITION
########################
** Module om_ssl**
** Host XXXXX**
** Port 12201**
** OutputType GELF_TCP**
** #### => CAFile Readable by nxlog user**
** CAFile /var/log/nxlog/DigiCertCA.crt**
** AllowUntrusted True**
** **
** # These fields are needed for Graylog**
** gl2_source_collector = '{sidecar.nodeId}’;**
** collector_node_id = '{sidecar.nodeName}’;**
** $Hostname = hostname_fqdn();**
** **
########
I cannot find a post with a suitable solution to my problem.
Could anyone kindly gives me an advice on this?
Regards,
Bruno