trying to put two conditions on my output for grok or geopip failure
I tried :
if ("_grokparsefailure" not in [tags] or "_geoip_lookup_failure" not in [tags])
if "_grokparsefailure" not in [tags] or "_geoip_lookup_failure" not in [tags]
if "_grokparsefailure" or "_geoip_lookup_failure" not in [tags]
if ("_grokparsefailure" or "_geoip_lookup_failure" not in [tags])
if "_grokparsefailure" not in [tags] {
...
}
else if "_geoip_lookup_failure" not in [tags] [
..
}
stiil get "Invalid index name [xxx,_geoip_lookup_failure-2019.01.31]
I want if ("_grokparsefailure" not in [tags] or "_geoip_lookup_failure" not in [tags]) --> don t work !! stiil get "Invalid index name [xxx,_geoip_lookup_failure-2019.01.31]
"or" in the condition seems not working with "(" or not
Ok the problem is logstash can't have two "not in" conditions if ("_grokparsefailure" not in [tags] or "_geoip_lookup_failure" not in [tags])--> don t work
if "_grokparsefailure" not in [tags] { ... } if "_geoip_lookup_failure" not in [tags] [ .. }--> dont work
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.