Query not executing in Elasticsearch input plugin for logstash

I think it was an issue with index. Thanks for suggesting that. An additional question if you don't mind me asking: I only want to send a single email if the query doesn't return anything, and none if it does. Is there a straightforward way to go about that? Sorry to trouble you. Thanks again for the help.