is there any solution to make else conditional so I can drop everything except the field with value1 and value2. I don't want to add more parameter inside drop processor if someday I have to add more pipeline.
hello, sorry before, but I dont use logstash nor filebeat. I use ingest pipeline on my Elasticsearch directly, if you want to know the reference I used is from here
hello @stephenb , exactly I want to drop the entire message, so I want to use drop that works as much as "else", I want to drop every message else than those 2 pipeline, since I saw on documentation that drop pipeline use "if", what "if" in my "drop" pipeline can I put to get "else" behaviour?
if you watch carefully what I write on the pipeline I've made, I actually made "drop" pipeline to act as "else" from another 2 pipeline, I didn't really want to use "else" outside processor, but I just want to drop every document else than the 2 pipeline mentioned above. But it is too much if I have more than 2 pipeline, so I have to write much field on my "if" inside my "drop" pipeline
Agree, That is why I was a bit confused in the beginning because it seemed to be doing exactly what you were describing.
I'm just explaining that the conditionals are inside the processors not outside, there is no control flow outside the processors they are simply executed in order, And there is no else as requested in the title of the thread
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.