Skip to content

Instantly share code, notes, and snippets.

@QCU87Z
Last active March 21, 2018 06:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save QCU87Z/0067feb9f95f2179543233980ecfad7f to your computer and use it in GitHub Desktop.
input {
syslog { id => "test-syslog-01" }
}
filter {
dissect {
mapping => {
"message" => %{aHost}:%{aServer}:%{aResult}:%{aResultDescption}
}
}
}
output {
stdout { codec => rubydebug }
nagios_nsca {
host => "192.168.10.100"
send_nsca_bin => "/root/send_nsca"
send_nsca_config => "/root/send_nsca.cfg"
nagios_status => aResult
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment