Thank you for your reply.
I used the drop filter as you told me with the different fields that I extracted logs, but it did the opposite of what I wanted. It only returns empty documents (Logstash deleted me all the documents where there was information).
Either you have, depending of different format (grok filter), always at least one field in common, let's say "id", you can use:
if ![id] {
drop{}
}
so if the field does not exists, drop the message.
Or, in your grok filter, add a tag, let say: "Parsed", and use
if "Parsed" not in [tags] {
drop{}
}
The condition you used before doesn't really make sense (I think). You can only use "String" in [tags] with tags. For other fields, you must have an equality (or [field] in "String 1, String 2" (check maybe if this is correct, I don't remember well))
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.