The last error keeps repeating indefinitely and I hit Control + C to get out of the loop. In the hope that some of the documents were indexed before the error, I issued the following command:
GET blogs/_search
And was returned the following:
If you can give me some guidance for how to resolve this issue that would be excellent. Thanks for your time
thank you for reaching out to us and apologies that you run into issues with the labs.
I'm not quite sure what went wrong in the first place, but the second one is easy to explain. You need to distinguish between the commands to be executed on the command line (usually rendered as code blocks with a black background) vs. commands to be submitted from the Kibana Dev Console (typically rendered with a white background).
For the "GET" command simply go to the Kibana Dev Console and submit the very same command from there and you should see the response in the right pane.
Let me know if this worked and how many hits you got, because it's also clear from your screenshot that Logstash managed to index some documents.
The first error suggests that elasticsearch is not currently running.
You can see in the logs that Logstash effectively collected data (each dot represents a document collected by Logstash). However, Logstash is trying to reach elasticsearch but fails to do so.
Make sure that your ES instance is running first before starting Logstash.
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.