【问题标题】:Failed to connect to Elasticsearch server无法连接到 Elasticsearch 服务器
【发布时间】:2019-09-27 15:14:09
【问题描述】:

我在 Azure (7.0.1) 上安装了最新版本的 ELK 堆栈。我在 kubernetes 上有一个带有这个 docker 镜像的 apm-server:docker.elastic.co/apm/apm-server:7.0.1

但是,它没有连接到 elasticsearch 服务器。

错误:

ERROR pipeline/output.go:100 Failed to connect to backoff(elasticsearch(http://x.x.x.x:9200)): Connection被标记为失败,因为onConnect回调失败:这个Beat需要Elasticsearch的默认分发。请从 elastic.co 升级到 Elasticsearch 的默认发行版,或者降级到 beats 的 oss-only 发行版

INFO pipeline/output.go:93 尝试重新连接回退(elasticsearch(http://x.x.x.x:9200)) 并尝试 11 次重新连接

INFO [publisher] pipeline/retry.go:189 retryer: 发送 unwait-signal 给消费者

INFO [发布者] pipeline/retry.go:191 完成

INFO [publisher] pipeline/retry.go:166 retryer: 向消费者发送等待信号

INFO [发布者] pipeline/retry.go:168 完成

INFO elasticsearch/client.go:734 尝试连接到 Elasticsearch 版本 7.0.1

INFO [request] beater/common_handler.go:185 处理请求 {"request_id": "2e79d623-b8fb-4743-8b50-b516db256d5b", "method": "POST", "URL": "/intake/v2 /events”,“content_length”:-1,“remote_address”:“10.0.11.11”,“user-agent”:“elastic-apm-node/2.11.0 elastic-apm-http-client/7.3.0”, “响应码”:202}

【问题讨论】:

    标签: azure elasticsearch elastic-stack bitnami


    【解决方案1】:

    看来你使用的是elasticsearch的oss发行版,但是apm的默认版本。

    升级elasticsearch集群到默认disto或者使用这个oss apm docker镜像:docker.elastic.co/apm/apm-server-oss:7.0.1

    【讨论】:

    • 使用 elasticsearch 6.7.1 版和图像 docker.elastic.co/apm/apm-server:6.6.1` 运行良好。我没有在那里使用oss图像。
    猜你喜欢
    • 1970-01-01
    • 2013-11-03
    • 2017-01-22
    • 1970-01-01
    • 2021-10-11
    • 1970-01-01
    • 2019-10-08
    • 2020-01-24
    • 1970-01-01
    相关资源
    最近更新 更多