4.加载Kibana仪表板.md

要更深入地了解基础架构,可以使用Kibana中的 指标应用日志应用。有关详细信息,请参阅指标监控日志监控

FileBeat附带示例Kibana仪表板、可视化,并在Kibana中搜索可视化FileBeat数据。在使用仪表板之前,您需要创建索引模式filebeat-*,并将仪表板加载到Kibana。

为此,可以运行setup命令(如此处所述)或在filebeat.yml配置文件中配置仪表板加载。这需要Kibana的endpoint配置。如果尚未配置Kibana endpoint,请参阅 Kibana endpoint

Load dashboards

在执行此步骤之前,请确保Kibana正在运行。如果要访问secured Kibana实例,请确保已按照快速入门:安装和配置中的说明配置凭据。

加载推荐的索引模板以写入Elasticsearch并部署示例仪表板以在Kibana中可视化数据:

./filebeat setup --dashboards

有关更多选项,例如加载自定义仪表板,请参阅 Importing Existing Beat Dashboards。如果您已配置Logstash输出,请参阅 Load dashboards for Logstash output

Load dashboards for Logstash output

在仪表板加载期间,FileBeat连接到Elasticsearch以检查版本信息。要在启用Logstash output 时加载仪表板,您需要暂时禁用Logstash output 并启用Elasticsearch。要连接到secured Elasticsearch集群,您还需要传递Elasticsearch credentials。

该示例显示了硬编码密码,但您应该将敏感值存储在 secrets keystore

./filebeat setup -e \
  -E output.logstash.enabled=false \
  -E output.elasticsearch.hosts=['localhost:9200'] \
  -E output.elasticsearch.username=filebeat_internal \
  -E output.elasticsearch.password=YOUR_PASSWORD \
  -E setup.kibana.host=localhost:5601

4.加载Kibana仪表板.md
http://blog.lujinkai.cn/运维/ELK/filebeats/How to guides/4.加载Kibana仪表板/
作者
像方便面一样的男子
发布于
2023年12月5日
许可协议