Skip to content

Instantly share code, notes, and snippets.

@neu5ron
Created January 4, 2018 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neu5ron/ad82daa2d452f56ba56d3610d5a0124f to your computer and use it in GitHub Desktop.
Save neu5ron/ad82daa2d452f56ba56d3610d5a0124f to your computer and use it in GitHub Desktop.
#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 _json>
Module xm_json
</Extension>
<Input WinEvtsIn>
Module im_msvistalog
Channel ForwardedEvents
</Input>
<Output LogstashOut>
Module om_tcp
Host #TODO:$LogstasthIPHere
Port #TODO:$LogstashPortHere
Exec to_json(); $message = $raw_event;
</Output>
<Route 1>
Path WinEvtsIn => LogstashOut
</Route>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment