当针对logz.io运行节拍器时,Metric耗散抛出以下错误:
ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(async(tcp://listener-eu.logz.io:5015)): x509: certificate signed by unknown authority设置如下:
# Standard config, I changed nothing here
metricbeat.config.modules:
path: ${path.config}/modules.d/*.yml
reload.enabled: false
# Standard config, I changed nothing here
setup.template.settings:
index.number_of_shards: 1
index.codec: best_compression
# "MyToken" is the correct token for metrics in logz.io, of course
fields:
logzio_codec: json
token: "MyToken"
fields_under_root: true
# Standard config, I changed nothing here
setup.kibana:
host: "localhost:5601"
# listener is correct, we use EU access, certificate is in the folder (Download as in the description)
output.logstash:
# The Logstash hosts
hosts: ["listener-eu.logz.io:5015"]
# Optional SSL. By default is off.
# List of root certificates for HTTPS server verifications
ssl.certificate_authorities: ['/etc/pki/tls/certs/COMODORSADomainValidationSecureServerCA.crt']
# Standard config, I changed nothing here
processors:
- add_host_metadata: ~
- add_cloud_metadata: ~
- add_docker_metadata: ~
- add_kubernetes_metadata: ~到目前为止我试过的/我已经检查过的:
COMODORSADomainValidationSecureServerCA.crt是来自https://github.com/logzio/public-certificates的证书,位于/etc/pki/tls/certs下面/etc/metricbeat/metricbeat.yml文件夹/文件没有特殊的文件夹访问权限(工作参考服务器也只在这两个文件夹上设置了chmod 700 )。output.logstash:的配置部分中设置output.logstash:,但是这并没有改变任何事情。奇怪的是,有时不会出现X509错误,而是一个超时错误(一旦我在日志中再次得到它,我会在这里发布)。
在配置中是否有明显的遗漏,或者更多可以在服务器上检查的东西?
https://stackoverflow.com/questions/69179134
复制相似问题