-
Bug
-
Resolution: Not A Defect
-
Critical
Hi,
the logstash plugin does not work with elasticsearch 6.x
There is a Breaking Change how HTTP Posts are handeld
https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_60_rest_changes.html
This is the error
[Pipeline] logstashSend[logstash-plugin]: Failed to send log data:
http://10.62.0.109:9200/logstash
.
[logstash-plugin]: No Further logs will be sent to
http://10.62.0.109:9200/logstash
.
java.io.IOException: HTTP error code: 405
URI:
http://10.62.0.109:9200/logstash
RESPONSE: HttpResponseProxy{HTTP/1.1 405 Method Not Allowed [Allow: GET,HEAD,PUT,DELETE, content-type: application/json; charset=UTF-8] org.apache.http.client.entity.DecompressingEntity@6a5e223a}
{"error":"Incorrect HTTP method for uri [/logstash] and method [POST], allowed: [GET, HEAD, PUT, DELETE]","status":405}
at jenkins.plugins.logstash.persistence.ElasticSearchDao.push(ElasticSearchDao.java:167)
at jenkins.plugins.logstash.LogstashWriter.write(LogstashWriter.java:176)
at jenkins.plugins.logstash.LogstashWriter.writeBuildLog(LogstashWriter.java:142)
at jenkins.plugins.logstash.LogstashNotifier.perform(LogstashNotifier.java:93)
at jenkins.plugins.logstash.LogstashNotifier.perform(LogstashNotifier.java:85)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
at hudson.security.ACL.impersonate(ACL.java:290)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
- duplicates
-
JENKINS-28546 logstash doesn't connect to a server and puts no messages out
- Resolved