[英]filebeat index creation seems not working in elasticsearch
According to this 根据这个
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html https://www.elastic.co/guide/zh-CN/elasticsearch/reference/current/indices-templates.html
we could create index like that 我们可以像这样创建索引
curl -XPUT 'http://@IPELK:9200/_template/filebeat?pretty' -d@/PATH2/filebeat.template.json
When i launch that commande I receive as output : { "acknowledged" : true } 当我启动该命令时,我收到以下输出:{“ acknowledged”:true}
But still no having index created in Elastic search as we can see : 但我们仍然可以看到,在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]#
So, actually i have no communication between filebeat and my logstash :( Any idea ? Thx. 所以,实际上我在filebeat和我的logstash之间没有通信:(任何想法吗?
By removing _template like this 通过删除这样的_template
curl -XPUT ' http://localhost:9200/filebeat?pretty ' -d@/path_2/filebeat.template.json curl -XPUT'http :// localhost:9200 / filebeat?pretty'-d@/path_2/filebeat.template.json
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.