Hi,
I'm importing data from sql to elasticsearch using logstash.
Is there a way in logstash to skip indexing document with null value.
Thanks,
Sai N
Hi,
I'm importing data from sql to elasticsearch using logstash.
Is there a way in logstash to skip indexing document with null value.
Thanks,
Sai N
Yes, but Logstash's configuration language doesn't have a concept of "null" so you need to use a Ruby filter.
But why not adjust the SQL query to not return null values in the first place?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.