使用 man ascii 来查看 ASCII 表。

怎样修改filebeat中的索引名称。默认的是“filebeat-6.2.1-2018.06.14”这种格式。 直接在filebeat.yml文件中添加“index: indexName”是不行的的。

Beats | 作者 Aruen | 发布于2018年12月24日 | 阅读数:7598

系统提示:这个人太懒了,什么问题描述都没有写!

已邀请:

bellengao - 博客: https://www.jianshu.com/u/e0088e3e2127

赞同来自:

是否报错:setup.template.name and setup.template.pattern have to be set if index name is modified?这样的话需要设置index template:https://www.elastic.co/guide/e ... .html

rochy - rochy_he

赞同来自:

需要修改 output 输出配置,例如:
参考官方文档:https://www.elastic.co/guide/e ... .html
output.elasticsearch:
hosts: ["http://localhost:9200"]
index: "filebeat-%{[beat.version]}-%{+yyyy.MM.dd}"
ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
ssl.certificate: "/etc/pki/client/cert.pem"
ssl.key: "/etc/pki/client/cert.key"

要回复问题请先登录注册