Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created April 20, 2015 12:52
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 dvas0004/e64f609db39b40c55c3e to your computer and use it in GitHub Desktop.
Save dvas0004/e64f609db39b40c55c3e to your computer and use it in GitHub Desktop.
sample nxlog configuration for linux
## 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/nxlog-docs/en/nxlog-reference-manual.html
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
define ROOT /nxlog
#define ROOT C:\Program Files (x86)\nxlog
Moduledir /usr/local/libexec/nxlog/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_file
File '/var/ossec/logs/archives/archives.log'
SavePos TRUE
ReadFromLast TRUE
PollInterval 1
Exec $Message = $raw_event;
# Exec to_json();
</Input>
<Output out>
Module om_tcp
Port 5141
Host 192.168.10.175
</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