Hello,
i would like to know how can i do a field value filter? for example to do drop event by field value or length of a value, and how can i do a where in filter, for example. "field value" not in [1,2,3] etc.
thanks.
Hello,
i would like to know how can i do a field value filter? for example to do drop event by field value or length of a value, and how can i do a where in filter, for example. "field value" not in [1,2,3] etc.
thanks.
You could define the Grok pattern with conditional fields.
IF the pattern matches x - set the value to the a 'xstring'
else you could set value to 'anotherstring'
Example
%{patternforx:xstring}| %{WORD:ystring}
Have you read the documentation about conditionals?
https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#conditionals
thank you
now yes :). thanks !
tell me, didnt see how i can get the length of a field value?
I think you need to use a ruby filter to check the field value length.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.