How can I check if the event.field_name value is present in the file? If yes, drop the event otherwise send the event to elasticsearch.
Note: The field_name could have multiple values in that file, and I want to check if the field_name value is present among the multiple values in that file.
Your question is not entirely clear, but if you are asking what I think you are asking you might be able to do it with a translate filter, otherwise you could do it in ruby, use the init option to load the file, build an array of entries, then test array membership in the code option and call event.cancel if you want to drop the event.
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.