Created
December 11, 2016 07:23
-
-
Save mingder78/00e9601ab56db92d9b629dd6d9a615f2 to your computer and use it in GitHub Desktop.
logstash example
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
output { | |
if [type] == "apache" { | |
if [status] =~ /^5\d\d/ { | |
nagios { ... } | |
} else if [status] =~ /^4\d\d/ { | |
elasticsearch { ... } | |
} | |
statsd { increment => "apache.%{status}" } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment