我在 Azure 上安装了最新版本的 ELK 堆栈 (7.0.1)。我在 kubernetes 上有 apm-server 和这个 docker 镜像: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 marked as failed because the onConnect callback failed: This Beat requires the default distribution of Elasticsearch. Please upgrade to the default distribution of Elasticsearch from elastic.co, or downgrade to the oss-only distribution of beats
INFO pipeline/output.go:93 Attempting to reconnect to backoff(elasticsearch(http://x.x.x.x:9200)) with 11 reconnect attempt(s)
INFO [publisher] pipeline/retry.go:189 retryer: send unwait-signal to consumer
INFO [publisher] pipeline/retry.go:191 done
INFO [publisher] pipeline/retry.go:166 retryer: send wait signal to consumer
INFO [publisher] pipeline/retry.go:168 done
INFO elasticsearch/client.go:734 Attempting to connect to Elasticsearch version 7.0.1
INFO [request] beater/common_handler.go:185 handled request {"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", "response_code": 202}
最佳答案
看来您使用的是elasticsearch的oss发行版,但使用的是默认版本的apm。
将elasticsearch集群升级到默认disto或使用此oss apm docker镜像:docker.elastic.co/apm/apm-server-oss:7.0.1
关于azure - 无法连接到 Elasticsearch 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56065263/