gpt4 book ai didi

elasticsearch - Jenkins Logstash插件无法发布到ElasticSearch

转载 作者:行者123 更新时间:2023-12-02 22:50:01 25 4
gpt4 key购买 nike

我已经为jenkins安装了logstash插件,并将其配置为使用索引器作为 flex 搜索。

在执行作业时,我看到以下错误:

16:56:12 [logstash-plugin]: Failed to send log data to ELASTICSEARCH:http://localhost:9200.
16:56:12 [logstash-plugin]: No Further logs will be sent to http://localhost:9200.
16:56:12 java.io.IOException: HTTP error code: 200
16:56:12 URI: http://localhost:9200/logstash-jenkins
16:56:12 RESPONSE: HttpResponseProxy{HTTP/1.1 200 OK [Content-Type: application/json; charset=UTF-8, Content-Length: 21] ResponseEntityProxy{[Content-Type: application/json; charset=UTF-8,Content-Length: 21,Chunked: false]}}
16:56:12 {"acknowledged":true}
16:56:12 at jenkins.plugins.logstash.persistence.ElasticSearchDao.push(ElasticSearchDao.java:113)
16:56:12 at jenkins.plugins.logstash.LogstashWriter.write(LogstashWriter.java:147)
16:56:12 at jenkins.plugins.logstash.LogstashWriter.write(LogstashWriter.java:85)
16:56:12 at jenkins.plugins.logstash.LogstashOutputStream.eol(LogstashOutputStream.java:58)
16:56:12 at hudson.console.LineTransformationOutputStream.eol(LineTransformationOutputStream.java:60)
16:56:12 at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:56)
16:56:12 at hudson.console.LineTransformationOutputStream.write(LineTransformationOutputStream.java:74)
16:56:12 at java.io.PrintStream.write(PrintStream.java:480)
16:56:12 at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
16:56:12 at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
16:56:12 at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:104)
16:56:12 at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:185)
16:56:12 at java.io.PrintStream.newLine(PrintStream.java:546)
16:56:12 at java.io.PrintStream.println(PrintStream.java:807)
16:56:12 at hudson.model.Cause$UserIdCause.print(Cause.java:426)
16:56:12 at hudson.model.StreamBuildListener.started(StreamBuildListener.java:75)
16:56:12 at hudson.model.Run.execute(Run.java:1723)
16:56:12 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
16:56:12 at hudson.model.ResourceController.execute(ResourceController.java:98)
16:56:12 at hudson.model.Executor.run(Executor.java:410)

我们将提供有关如何解决此错误的任何线索。

谢谢
-普拉泰克

最佳答案

在Jenkins插件中,您需要定义包含[yourindex] / [yourtype]的elasticsearch网址,如下所示:
http://localhost:9200/yourindex/yourtype
希望能帮助到你。

关于elasticsearch - Jenkins Logstash插件无法发布到ElasticSearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36319816/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com