软件版本:ELK 7.14.0 filebeat7.14.0
运行环境:ubuntu18.04
代码:
(2)
即使如(2)这样的配置也无法生成索引,以前还是可以的,修改了几次后现在filebeat已经完全无法生成自定义索引了,不管是单个还是多个,索引生命周期管理也关闭了,只能在kibana看到生成的索引模板,ELK萌新在这卡了很久,请求大佬指点!谢谢!!
运行环境:ubuntu18.04
代码:
- type: log
enabled: true
paths:
- /mnt/samba/FTPNetworkShare/Jenkins_Network_Share/Logs/90/gitlab_access.log
fields:
log_type: 90
fields_under_root: true
- type: log
enabled: true
paths:
- /mnt/samba/FTPNetworkShare/Jenkins_Network_Share/Logs/70/gitlab_access.log
fields:
log_type: 70
fields_under_root: true
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["x.x.x.x:9200"]
#index: "log-%{[fields.log_type]}-%{+yyyy.MM.dd}"
indices:
- index: "log-70-%{+yyyy.MM.dd}"
when.equals:
fields:
log_type: "70"
- index: "log-90-%{+yyyy.MM.dd}"
when.equals:
fields:
log_type: "90"
setup.ilm.enabled: false
setup.template.name: "log"
setup.template.pattern: "log-*"
setup.template.enabled: true
setup.template.overwrite: true
(2)
index: "log-%{+yyyy.MM.dd}"
setup.ilm.enabled: false
setup.template.name: "log"
setup.template.pattern: "log-*"
即使如(2)这样的配置也无法生成索引,以前还是可以的,修改了几次后现在filebeat已经完全无法生成自定义索引了,不管是单个还是多个,索引生命周期管理也关闭了,只能在kibana看到生成的索引模板,ELK萌新在这卡了很久,请求大佬指点!谢谢!!
1 个回复
zqc0512 - andy zhou
赞同来自:
paths:
- /mnt/samba/FTPNetworkShare/Jenkins_Network_Share/Logs/90/gitlab_access.log
- /mnt/samba/FTPNetworkShare/Jenkins_Network_Share/Logs/70/gitlab_access.log