【问题标题】:No indices match pattern "filebeat-*没有索引匹配模式“filebeat-*
【发布时间】:2019-05-08 22:13:28
【问题描述】:

我收到错误 ---“未找到匹配的索引:没有索引匹配模式“filebeat-*”” 我只是按照教程上的

https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-16-04

curl -XGET 'http://xxx.xxx.xxx.xxx:9200/filebeat-*/_search?pretty'
{
"took" : 0,
"timedout" : false,
"shards" : {
"total" : 0,
"successful" : 0,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : 0.0,
"hits" : [ ]
}
}

需要帮助...!!!!

【问题讨论】:

  • 检查 filebeat 和 logstash 是否已启动。如果是这样,将输出配置为文件(在两者中)。不写入文件的那个是有问题的。
  • filebeat 和 logstash 都已启动。我也添加了 etc/logstash/conf.d/apache-01.conf

标签: elasticsearch logstash filebeat kibana-5


【解决方案1】:

我也有同样的错误,我没有正确更新 filebeat.yml,如果您已将配置设置为发送到 logstash,请使用以下内容更新文件 filebeat.yml


打开文件beat.yml
$ sudo nano /etc/filebeat/filebeat.yml

评论以下行
#output.elasticsearch:
#hosts: ["localhost:9200"]

取消注释以下行

输出.logstash:
主机:["localhost:5044"]

【讨论】:

    猜你喜欢
    • 2019-01-14
    • 2019-04-25
    • 2018-11-22
    • 1970-01-01
    • 2017-05-25
    • 2022-07-20
    • 2016-01-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多