Skip to content

Commit

Permalink
Correcting grep config in nagios doc/example
Browse files Browse the repository at this point in the history
  • Loading branch information
wiibaa committed Jul 10, 2012
1 parent 046f17b commit 7582582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions etc/examples/agent-nagios.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ filter {
grep {
type => "foo"
match => [ "@message", ".*" ]
add_fields => [ "nagios_host", "%{@source_host}" ]
add_fields => [ "nagios_service", "example service" ]
add_fields => [ "nagios_annotation", "my annotation" ]
add_field => [
"nagios_host", "%{@source_host}",
"nagios_service", "example service",
"nagios_annotation", "my annotation"
]
}
}

Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/nagios.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# type => "linux-syslog"
# match => [ "@message", "(error|ERROR|CRITICAL)" ]
# add_tag => [ "nagios-update" ]
# add_fields => [
# add_field => [
# "nagios_host", "%{@source_host}",
# "nagios_service", "the name of your nagios service check"
# ]
Expand Down

0 comments on commit 7582582

Please sign in to comment.