Last active
August 29, 2015 14:19
-
-
Save tom-henderson/dc9572a973003db18019 to your computer and use it in GitHub Desktop.
Greylog Configuration
This file contains 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
$template GRAYLOGRFC5424,"%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msg%\n" | |
*.* @syslog.example.com:514;GRAYLOGRFC5424 |
This file contains 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. | |
#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 gelf> | |
Module xm_gelf | |
</Extension> | |
<Input in> | |
# Use 'im_mseventlog' for Windows XP and 2003 | |
Module im_msvistalog | |
Exec if ($EventID == 4202 or $EventID == 4208 or $EventID == 4302 or $EventID == 4304 or $EventID == 5004) drop();\ | |
else{\ | |
if ( $EventType == "INFO" ) $SyslogSeverityValue = 6;\ | |
if ( $EventType == "WARNING" ) $SyslogSeverityValue = 4;\ | |
if ( $EventType == "ERROR" ) $SyslogSeverityValue = 3;\ | |
} | |
</Input> | |
<Output out> | |
Module om_udp | |
Host syslog.example.com | |
Port 12201 | |
OutputType GELF | |
</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