Graylog3 Appliance on Ubuntu
Sidecar on my Windows8
I have configured nxlog:
Panic Soft
#NoFreeOnExit TRUE
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 _gelf>
Module xm_gelf
</Extension>
<Input in>
Module im_msvistalog
</Input>
<Output out_udp>
Module om_udp
Host 192.168.209.167
Port 12201
OutputType GELF
</Output>
<Route 1>
Path in => out_udp
</Route>
All firewalls are disabled, on graylog and on my windows (i think!)
But in nxlog.log i see:
2019-04-02 10:52:29 INFO connecting to 192.168.x.x:12201
2019-04-02 10:52:30 INFO reconnecting in 200 seconds
2019-04-02 10:52:30 ERROR couldn’t connect to tcp socket on 192.168.x.x:12201; No se puede establecer una conexión ya que el equipo de destino denegó expresamente dicha conexión.
No inputs received.
Not sure how to test it, I have tried:
C:\windows\system32>echo -n ‘{ “version”: “1.1”, “host”: “example.org”, “short_m
essage”: “A short message”, “level”: 5, “_some_info”: “foo” }’ | nc -w0 -u 192.1
68.x.x 12201
C:\windows\system32>eventcreate /id 11 /l application /t information /so graylog
source /d “Event testing”
From Graylog console, I see my sidecar running, and created a GELD UDP input