Shipping jenkins job console gives object mapping error

I am using the logstash plugin to ship console logs from Jenkins jobs.I am able to ship logs from all the jenkins job , except in one where I get the below error:

RESPONSE: HttpResponseProxy{HTTP/1.1 400 Bad Request [Warning: 299 Elasticsearch-6.3.2-053779d "[default] mapping is deprecated since it is not useful anymore now that indexes cannot have more than one type" "Mon, 20 Aug 2018 07:42:21 GMT", content-type: application/json; charset=UTF-8] org.apache.http.client.entity.DecompressingEntity@78c4b75b}
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Can't merge a non object mapping [data.buildVariables.db2.ci.server] with an object mapping [data.buildVariables.db2.ci.server]"}],"type":"illegal_argument_exception","reason":"Can't merge a non object mapping [data.buildVariables.db2.ci.server] with an object mapping [data.buildVariables.db2.ci.server]"},"status":400}
at jenkins.plugins.logstash.persistence.ElasticSearchDao.push(ElasticSearchDao.java:167)
at jenkins.plugins.logstash.LogstashWriter.write(LogstashWriter.java:176)
at jenkins.plugins.logstash.LogstashWriter.write(LogstashWriter.java:111)
at jenkins.plugins.logstash.LogstashOutputStream.eol(LogstashOutputStream.java:64)
at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
at java.io.PrintStream.write(PrintStream.java:480)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)
at java.io.PrintStream.newLine(PrintStream.java:546)
at java.io.PrintStream.println(PrintStream.java:807)
at hudson.model.Cause$UpstreamCause.print(Cause.java:307)
at hudson.model.Cause$UpstreamCause.print(Cause.java:296)
at hudson.model.StreamBuildListener.started(StreamBuildListener.java:75)
at hudson.model.Run.execute(Run.java:1713)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)

Plz help.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.