Skip to content

Commit

Permalink
start rules for "process" logs
Browse files Browse the repository at this point in the history
helps with #17
  • Loading branch information
widhalmt committed May 10, 2019
1 parent df7b3bb commit 153b400
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions filter-50-process.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
filter {
if [icinga][facility] == "Process" {
if [message] =~ /PID/ {
grok {
match => ["message","PID %{POSINT:[icinga][pid]} was terminated by signal %{POSINT:[icinga][signal][code]} \({%{WORD:[icinga][signal][detail]}\)"]
id => "icinga_process_pidterminated"
add_tag => "icinga_process_pidterminated"
tag_on_failure => ["_grokparsefailure","icinga_process_pidterminated_failed"]
add_field => {
"[icinga][eventtype]" => "process_pidterminated"
}
}
}
}
}

0 comments on commit 153b400

Please sign in to comment.