Skip indexing document with null value

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.