Skip to content

Commit

Permalink
Set process.name if not already set
Browse files Browse the repository at this point in the history
fixes #57
helps with #46
  • Loading branch information
widhalmt committed Apr 27, 2022
1 parent 1b977e4 commit f722f9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions filter-80-ecs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@ filter {
"[ecs][version]" => "1.0.1"
}
}

if ![process][name] {
mutate {
add_field => {
"[process][name]" => "icinga2"
}
}
}

}

0 comments on commit f722f9d

Please sign in to comment.