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?
© 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.