麋鹿堆栈错误弹性搜索不授权logstash

发布于 2025-01-24 14:14:18 字数 527 浏览 6 评论 0原文

我跟进这个博客从Docker组成的文件中启动Elk Stack,但使用了8.1.2版。它没有成功地运行弹性搜索,因此不授权logstash。

logstash的错误是[main]尝试将连接复活到死去的ES实例,但有一个错误{:url =>“ http:// elasticsearch:9200/“,:exception => logstash :: uptufs :: outputs :: elasticsearch :: httpclient :: pool :: badresponsecodeerror,:message =>“获得响应代码'401'在url'http:// elasticsearch:9200/''}

I followed up this blog to start ELK stack from docker compose file but used version 8.1.2. It is not running successfully elastic search don't authorize Logstash.

The error from Logstash is [main] Attempted to resurrect connection to dead ES instance, but got an error {:url=>"http://elasticsearch:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=>"Got response code '401' contacting Elasticsearch at URL 'http://elasticsearch:9200/'"}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴者 2025-01-31 14:14:18

您是否尝试使用HTTP而不是HTTP,因为默认情况下ES 8版本中的安全性。

did you try to use HTTPS instead of HTTP as the security in ES 8 version is enabled by default.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文