I am using nxlog CE on Wi2016 and have configured it to log data to windows event files.
I am sending dummy syslog using kiwi syslog generator with random host from subnet.
I can also see data from random hosts in a syslog watcher. but its not logged in files.
why its not saving data for syslog traffic please?

here is my config.

#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog

Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log

<Extension gelf>
Module xm_gelf
<Extension json>
Module xm_json
<Extension syslog>
Module xm_syslog

<Input in1>
Module im_tcp
Port 514
<Input in2>
Module im_udp
Port 514
<Input in>
Module im_msvistalog
Exec $Message = to_json();
<Output out>
Module om_file
CreateDir TRUE
File 'C:\nxlog\Syslog' + "_" + strftime(now(),"%Y-%m-%d") + ".log"
OutputType LineBased

<Route R1>
Path in1 , in2 , in => out


Any help is appreciated.

AskedSeptember 13, 2019 - 1:12pm

Answer (1)

Do you see a connection accepted message in nxlog.log for im_tcp ? If not, then you should troubleshoot your network, e.g. doing a packet capture to see what's going in with the network data.

See the Troubleshooting section in the user guide.