Heelo,
I tried to send the log of Windows in SSL/TLS, but it doesn’t works.
It’s my configuration of the nxlog.conf on Windows :
define ROOT C:\Program Files (x86)\nxlog
define CERTDIR %ROOT%\cert
define CONFDIR %ROOT%\conf
define LOGDIR %ROOT%\data
define LOGFILE %LOGDIR%\nxlog.log
LogFile %LOGFILE%
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
<Extension _syslog>
Module xm_syslog
</Extension>
<Extension _charconv>
Module xm_charconv
#AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32
</Extension>
<Extension _exec>
Module xm_exec
</Extension>
<Input in>
Module im_msvistalog
# For windows 2003 and earlier use the following:
# Module im_mseventlog
<QueryXML>
<QueryList>
<Query Id="0">
<Select Path="Security">*[System[(EventID=4624 or EventID=4634)]]</Select>
<Select Path="System">*[System[(Level=1 or Level=2 or Level=3)]]</Select>
</Query>
</QueryList>
</QueryXML>
</Input>
<Extension gelf>
Module xm_gelf
</Extension>
<Output out>
Module om_ssl
Host IP_address
Port 12201
Exec to_syslog_snare();
CertFile %CERTDIR%\cert.pem
CertKeyFile %CERTDIR%\pkcs8-encrypted.pem
AllowUntrusted TRUE
KeyPass password
OutputType GELF_TCP
</Output>
<Route 1>
Path in => out
</Route>
and on my graylog input, I have this :
Port 12201
TLS cert file /etc/graylog/server/certificats/cert.pem
TLS private key file /etc/graylog/server/certificats/pkcs8-encrypted.pem
Enable TLS
TLS key password password
And I have this error message :
ERROR SSL certificate verification failed: unable to get local issuer certificate (err: 20)
Thanks