filebeat 6.0以后版本设置index名字

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了filebeat 6.0以后版本设置index名字相关的知识,希望对你有一定的参考价值。

坑坑坑,官网说明很不明显

https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-template.html

6.0以后版本具体设置在filebeat.yml如下

setup.template.name: "myname-01"        #顶格,和output对其
setup.template.pattern: "myname-01-*"   #顶格,和output对其
output.elasticsearch:
  hosts: ["192.168.10.63:9200"]
  index: "myname-01-%{+yyyy.MM.dd}"             #和hosts对其

以上是关于filebeat 6.0以后版本设置index名字的主要内容,如果未能解决你的问题,请参考以下文章

多台NGINX服务器 ELK部署Filebeat的fields字段+Logstash的if 字段 采集多个日志文件写入elasticsearch 7.6.2 变更为不同索引名 自定义索引 index

Android 6.0版本以后运行时权限提醒

centos 7.5 安装ELK elasticsearch-7.6.2单点服务器+logstash+filebeat+kibana7.6.2安装设置

Elasticsearch 6.0 一个索引只允许有一个type

生成环境filebeat logstash配置模板

生产环境filebeat logstash配置模板