【问题标题】:How to create filebeat index pattern in kibana?如何在 kibana 中创建 filebeat 索引模式?
【发布时间】:2017-05-25 18:36:57
【问题描述】:

我目前正在使用带有 filebeat 的 ELK 堆栈。我能够以 json 格式将 apache 日志文件内容映射到 Elasticsearch 服务器。现在我想知道如何在kibana中为filebeat创建索引模式?按照下面的链接,但这没有帮助。 https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-index-pattern.html

【问题讨论】:

    标签: elasticsearch logstash kibana elastic-stack filebeat


    【解决方案1】:

    如您链接的页面上所述,“要加载此模式,您可以使用为导入仪表板提供的脚本。”因此,在您看到filebeat-* 索引模式之前,您应该运行./scripts/import_dashboards 工具然后刷新页面。这会将索引模式写入 Kibana 使用的.kibana 索引。

    对于通过 rpm 或 deb 安装的 Linux,命令为:

    /usr/share/filebeat/scripts/import_dashboards -es http://elasticsearch:9200
    

    如果您使用的是 tar 或 zip 包,该命令位于包的 scripts 目录中。

    您可以通过转到Management -> Index Patterns 进一步管理或修改 Kibana 中的索引模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-25
      • 2017-07-31
      • 2018-07-28
      • 2019-07-07
      • 1970-01-01
      • 2016-08-20
      • 2019-02-04
      • 2023-01-03
      相关资源
      最近更新 更多