Ignore warning on empty result (elasticsearch filter)

Description

Hi,

When I have a empty result for a query in elasticsearch filter, I get a lots of warning message "<NoMethodError: undefined method `[]' for nil:NilClass>"

These messages increase the writing to the Logstash logfiles.

Activity

Show:
Graeme Fowler
May 12, 2014, 9:53 AM

See https://github.com/elasticsearch/logstash-contrib/pull/57

That may fix your issues, but note that it means the query never fails - it simply returns a specific field if it does, and you need to check that.

Philippe Weber
August 1, 2014, 8:50 AM

Assignee

Logstash Developers

Reporter

Duy Long

Affects versions

Configure