, , ,

While developing scripts to parse data using Logstash, I noted weird behavior from Logstash. If there is an ‘elasticsearch’ block in the ‘output’ block of the Logstash script and Elasticsearch is not running when the Logstash script is executed, Logstash refuses to parse data sent to it.

The script starts working when we comment out the ‘elasticsearch’ block (with no changes to any other portion of the script).