If Logstash has problems sending to ES it'll tell you about it in the log.
While debugging inputs and filters use a simple output like stdout { codec => rubydebug }. Once you've confirmed that things are behaving as expected you can add additional complexity like an ES output.
And below is the tail of the logstash.log. Any idea on how to troubleshoot the above ?
root@localhost:/var/log# tail -f logstash.log
tail: cannot open ‘logstash.log’ for reading: No such file or directory
root@localhost:/var/log# cd logstash/
root@localhost:/var/log/logstash# tail -f logstash.log
{:timestamp=>"2018-05-09T14:10:31.256000+0530", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
{:timestamp=>"2018-05-09T14:16:28.769000+0530", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
{:timestamp=>"2018-05-09T14:19:28.381000+0530", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
{:timestamp=>"2018-05-09T15:04:20.584000+0530", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
{:timestamp=>"2018-05-09T15:07:47.107000+0530", :message=>"SIGTERM received. Shutting down the pipeline.", :level=>:warn}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.