send a test message syslog

Tags:

#1 GustavoM

Hello, I have the following nxlog configuration file:

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>

<Input in> Module im_msvistalog #Exec if not ($EventID IN (4624, 1102)) drop();

</input>

<Output out> Module om_udp Host xx.xxx.xx Port 514 Exec to_syslog_snare(); </Output>

<Route> Path in=>out </Route>

I am sending windows log events to a syslog.

I would like to know how do I send a "connector is ok" test message every 1 hour

can you help me?

#2 Zhengshi Nxlog ✓
#1 GustavoM
Hello, I have the following nxlog configuration file: 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> <Input in> Module im_msvistalog #Exec if not ($EventID IN (4624, 1102)) drop(); </input> <Output out> Module om_udp Host xx.xxx.xx Port 514 Exec to_syslog_snare(); </Output> <Route> Path in=>out </Route> I am sending windows log events to a syslog. I would like to know how do I send a "connector is ok" test message every 1 hour can you help me?

You are looking for im_mark. This will produce a heartbeat message for you.
https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#im_mark