Artica Wiki

Send Microsoft Windows events to Log Sink

By sending Windows events to a Log sink, you can centralize your log data and make it easier to manage and analyze. This can be especially helpful in large environments where you have many Windows machines generating events.

To send Windows events to the Log Sink, you can use a third-party tool such as NXLog to forward events. 

Panic Soft
#NoFreeOnExit TRUE
define ROOT     C:\Program Files\nxlog
define CERTDIR  %ROOT%\cert
define CONFDIR  %ROOT%\conf\nxlog.d
define LOGDIR   %ROOT%\data
include %CONFDIR%\\*.conf
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>
<Extension _fileop>
      Module      xm_fileop
      <Schedule>
              Every   1 hour
              Exec    if (file_exists('%LOGFILE%') and (file_size('%LOGFILE%') >= 5M)) file_cycle('%LOGFILE%', 8);
      </Schedule>
      <Schedule>
              When    @weekly
              Exec    if file_exists('%LOGFILE%') file_cycle('%LOGFILE%', 8);
      </Schedule>
</Extension>

<Input WindowsEvents>
      Module      im_msvistalog
</Input>

<Output LogSink>
# Use om_tcp if Log Sink listen in TCP mode
        Module      om_udp
# Set here the Log Sink address
        Host        192.168.1.12
        Port        514
        Exec        to_syslog_snare();
</Output>

<Route 1>
          Path        WindowsEvents=> LogSink
</Route>