Java
if("str||aaa").indexOf("||")
logstash filter if?
ps. What should I do?
Java
if("str||aaa").indexOf("||")
logstash filter if?
ps. What should I do?
I think this is what you are looking for:
You can use the
in
operator to test whether a field contains a specific string, key, or list element. Note that the semantic meaning ofin
can vary, based on the target type. For example, when applied to a string.in
means "is a substring of". When applied to a collection type,in
means "collection contains the exact value".
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.