[英]filebeat index creation seems not working in elasticsearch
根據這個
https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/indices-templates.html
我們可以像這樣創建索引
curl -XPUT 'http://@IPELK:9200/_template/filebeat?pretty' -d@/PATH2/filebeat.template.json
當我啟動該命令時,我收到以下輸出:{“ acknowledged”:true}
但我們仍然可以看到,在Elastic搜索中仍然沒有創建索引:
[root] curl 'localhost:9200/_cat/indices?v'
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open .kibana 1 1 3 1 15.1kb 15.1kb
yellow open logstash-2016.01.12 5 1 115 0 142.4kb 142.4kb
[root]#
所以,實際上我在filebeat和我的logstash之間沒有通信:(任何想法嗎?
通過刪除這樣的_template
curl -XPUT'http :// localhost:9200 / filebeat?pretty'-d@/path_2/filebeat.template.json
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.