Why this config is not creating indexes in Kibana for Filebeat Logstash Multiple Indexes. Using 7.1.1 version
filebeat.yml
#=========================== Filebeat inputs =============================
filebeat.inputs:
-
type: log
enabled: true
paths:- c:\elk-stack\data_files\data*.log
fields:
type: "data"
- c:\elk-stack\data_files\data*.log
-
type: log
enabled: true
paths:- c:\elk-stack\data_files\winemag*.log
fields:
type: "winemagservice"
- c:\elk-stack\data_files\winemag*.log
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["localhost:5044"]
index: "index-%{[fields.type]:other}"
logstash.conf
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "localhost:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}