Created
November 15, 2014 01:39
-
-
Save ctaloi/a90e85e464c2a9efbf5f to your computer and use it in GitHub Desktop.
NXLOG Config to fork Syslogs to localhost and PaperTrail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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. | |
# Exec parse_syslog_ietf(); | |
#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> | |
<Input in> | |
Module im_udp | |
Host 0.0.0.0 | |
Port 514 | |
Exec parse_syslog(); | |
</Input> | |
<Output syslogOut> | |
Module om_udp | |
Host logs.papertrailapp.com | |
Port 44151 | |
</Output> | |
<Output solarwindsOut> | |
Module om_udp | |
Host 127.0.0.1 | |
Port 55151 | |
</Output> | |
<Processor eventlog_transformer> | |
Module pm_transformer | |
InputFormat syslog_rfc3164 | |
OutputFormat syslog_rfc3164 | |
</Processor> | |
<Route 1> | |
Path in => eventlog_transformer => syslogOut, solarwindsOut | |
</Route> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment