@Shreesh_Narayanan It's not clear to me from your question where and how you're tying to use the filter.
The code looks like it's for ingestion (maybe logstash or filebeat?) but I'm guessing.
Could you please provide a bit more information on how you're trying to use the filter and more about your setup (version, use case etc)?
Thanks!
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.