1、背景

搭建ELK收集k8s集群日志后,登陆kibana打开DashBoard特别缓慢
版本:8.4.3

查看kibana日志发现存在大量错误日志:无法从注册表获取cloud_security_posture的最新版本:

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2022-11-24T11:04:00.213+08:00","message":"[cloud_security_posture] package not installed or found in registry","log":{"level":"ERROR","logger":"plugins.fleet"},"process":{"pid":2888907},"trace":{"id":"7e1f31eb15572104bed2332ee3ed66d7"},"transaction":{"id":"3a5442ba6b32dd77"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2022-11-24T11:04:20.211+08:00","message":"Failed to fetch latest version of cloud_security_posture from registry: Error connecting to package registry: request to https://epr.elastic.co/search?package=cloud_security_posture&experimental=true&kibana.version=8.4.3 failed, reason: getaddrinfo ENOTFOUND epr.elastic.co","log":{"level":"ERROR","logger":"plugins.fleet"},"process":{"pid":2888907},"trace":{"id":"9676a751584a244db60862a00e002559"},"transaction":{"id":"6784bf44b809e0f3"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2022-11-24T11:04:20.211+08:00","message":"Error while fetching status: PackageNotFoundError: [cloud_security_posture] package not found in registry","log":{"level":"ERROR","logger":"plugins.cloudSecurityPosture"},"process":{"pid":2888907},"trace":{"id":"9676a751584a244db60862a00e002559"},"transaction":{"id":"6784bf44b809e0f3"}}

在这里插入图片描述

2、原因

  • 这是由于kibana默认开启了遥测,可以使用一下参数关闭
    修改kibana.yml
telemetry.enabled: false
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐