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?