要对后面新的index有效,要创建一个默认模板(模板很重要,模板可以为所欲为):
[root@elk212 filebeat]# curl -X PUT 192.168.68.212:9200/_template/my_template_log -H 'Content-Type: application/json' -d '{"index_patterns" : ["logs-*"],"order" : 0,"settings" : {"number_of_replicas" : 0,"number_of_shards" : 5}}'
结束语
更多精彩内容持续更新中,关注微信公众号,有你更精彩。