Skip to content

Instantly share code, notes, and snippets.

@deruke
Created September 20, 2017 12:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deruke/f791f2ecfedde51caa9dc9bf4ad1e3f0 to your computer and use it in GitHub Desktop.
Save deruke/f791f2ecfedde51caa9dc9bf4ad1e3f0 to your computer and use it in GitHub Desktop.
WEF-nxlog.conf
# define ROOT dir
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 _syslog>
# Module xm_syslog
#</Extension>
<Extension _json>
Module xm_json
</Extension>
<Input ForwardedEvents>
Module im_msvistalog
<QueryXML>
<QueryList>
<Query Id="0">
<Select Path="ForwardedEvents">*</Select>
</Query>
</QueryList>
</QueryXML>
</Input>
<Output ForwardedEventsOut>
Module om_tcp
Host 192.168.2.9
Port 3515
Exec to_json();
</Output>
<Route 1>
Path ForwardedEvents => ForwardedEventsOut
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment