Skip to content

Commit

Permalink
now checking for pull
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Aug 8, 2023
1 parent 0dcbd59 commit 60e0794
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configs/ps-collector.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ filter {
rename => { "id" => "[@metadata][id]" }
}

if ![push]{
if [pull] {
mutate {
add_field => { "push" => false }
remove_field => ["pull"]
}
} else {
mutate { add_field => { "push" => true } }
}

Expand Down

0 comments on commit 60e0794

Please sign in to comment.