logstash http.host:0.0.0.0-查找日志存储时出错:无此主机

wkyowqbh  于 2022-12-09  发布在  Logstash
关注(0)|答案(1)|浏览(229)

我正在k8上部署ELK,但在Filebeat上遇到错误
kubectl describe pod filebeat-filebeat-rpjbg -n elk ///

错误:

Warning  Unhealthy  8s (x5 over 48s)  kubelet            Readiness probe failed: logstash: logstash:5044...
  connection...
    parse host... OK
    dns lookup... ERROR lookup logstash on 10.245.0.10:53: no such host

在logstash values.yaml中,这是否会导致错误?

logstashConfig:
  logstash.yml: |
    http.host: 0.0.0.0
    xpack.monitoring.enabled: false

极轨道密度扫描卫星

NAME                      READY   STATUS    RESTARTS   AGE
elasticsearch-master-0    1/1     Running   0          146m
filebeat-filebeat-rpjbg   0/1     Running   0          5m45s
filebeat-filebeat-v4fxz   0/1     Running   0          5m45s
filebeat-filebeat-zf5w7   0/1     Running   0          5m45s
logstash-logstash-0       1/1     Running   0          14m
logstash-logstash-1       1/1     Running   0          14m
logstash-logstash-2       1/1     Running   0          14m

上腔静脉:

NAME                            TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)             AGE
elasticsearch-master            ClusterIP   10.245.205.251   <none>        9200/TCP,9300/TCP   172m
elasticsearch-master-headless   ClusterIP   None             <none>        9200/TCP,9300/TCP   172m
logstash-logstash               ClusterIP   10.245.104.163   <none>        5044/TCP            16m
logstash-logstash-headless      ClusterIP   None             <none>        9600/TCP            16m

elasticsearch - values.yaml
logstash - values.yaml
filebeat - values.yaml

b91juud3

b91juud31#

Filebeat正在尝试解析“logstash”,但您没有使用该名称的服务。您有“logstash-logstash”。请尝试更改filebeat配置(filebeat values.yaml中的第49行和第116行)或相应地更改您的logstash服务的名称。

相关问题