From 60e079484c0c2df29ba18eda39a83fc11e9f46d4 Mon Sep 17 00:00:00 2001 From: Ilija Vukotic Date: Tue, 8 Aug 2023 15:29:29 +0200 Subject: [PATCH] now checking for pull --- configs/ps-collector.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/ps-collector.conf b/configs/ps-collector.conf index 85d18d2..29c3b63 100644 --- a/configs/ps-collector.conf +++ b/configs/ps-collector.conf @@ -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 } } }