jenkins logstash-plugin unable to post to elasticSearch jenkins logstash-plugin unable to post to elasticSearch jenkins jenkins

jenkins logstash-plugin unable to post to elasticSearch


At Jenkins plugin you need to define elasticsearch url that contains [yourindex]/[yourtype] as follows:http://localhost:9200/yourindex/yourtypeHope it helps.


Are you trying to use Logstash to feed logs into Elasticsearch? Despite being called 'Logstash Plugin' the Jenkins Logstash plugin doesn't support this. I found that when I tried to send logs straight to Elasticsearch the plugin worked fine but when I tried to go through Logstash I got the same error as you.

There's currently a pull request in the Jenkins Logstash github to fix this bug (https://github.com/jenkinsci/logstash-plugin/pull/22), but as the plugin hasn't been active for 10 months (at time of writing) I don't have much hope.

If you want to send logs straight to Elasticsearch, you need to configure Elasticsearch to listen to remote connections. Set the following in your elasticsearch.yml:

network.host: 0.0.0.0http.port: 7590

Then set the Elasticsearch url in Jenkins to http://:7590/

Hope that helps!