From 8e1139e3785754fcf9e3869dc862c8351421af25 Mon Sep 17 00:00:00 2001 From: Ilija Vukotic Date: Tue, 6 Feb 2024 14:27:43 +0100 Subject: [PATCH] no token --- configs/crest.conf | 6 +++--- tester.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/crest.conf b/configs/crest.conf index 03d2952..0e9bd56 100644 --- a/configs/crest.conf +++ b/configs/crest.conf @@ -11,9 +11,9 @@ filter { remove_field => [ "logger_name", "port", "type" ] } - if [token] not in [ "crest" ] { - drop {} - } + # if [token] not in [ "crest" ] { + # drop {} + # } } output { diff --git a/tester.py b/tester.py index 67505b4..d69ca38 100644 --- a/tester.py +++ b/tester.py @@ -13,6 +13,7 @@ test_logger.warning('python-logstash: test logstash warning mdessage.') metric = { + 'token': 'crest', 'metric_string': 'python version: ' + repr(sys.version_info), 'metric_boolean': True, 'metric_dict': {'a': 1, 'b': 'c'},