Skip to content

Instantly share code, notes, and snippets.

@jfrantz1-r7
Last active July 21, 2020 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfrantz1-r7/feb9fb49603690fb391ea4cc8ff5cb20 to your computer and use it in GitHub Desktop.
Save jfrantz1-r7/feb9fb49603690fb391ea4cc8ff5cb20 to your computer and use it in GitHub Desktop.
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/docs/
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#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 _syslog>
Module xm_syslog
</Extension>
<Extension json>
Module xm_json
</Extension>
<Input in>
Module im_msvistalog
ReadFromLast True
Query <QueryList>\
<Query Id="0" Path="Security">\
<Select Path="Security">*</Select>\
</Query>\
</QueryList>
</Input>
<Output out>
Module om_tcp
Host 10.100.2.39
Port 5140
Exec to_json();
</Output>
<Route 1>
Path in => out
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment