Hello,
I have in one filebeat.yml two paths for two different logs and it works fine but I need to divide to two index.
I tried as below:
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /var/log/nginx/*.log
  fields:
    type: "nginx"
- type: log
  enabled: true
  paths:
    - /var/log/app/*.log
  fields:
    type: "app"
Elasticsearch template setting:
setup.template.settings:
  index.number_of_shards: 4
setup.template.name: "nginx"
setup.template.pattern: "nginx-*"
setup.template.name: "app"
setup.template.pattern: "app-*"
setup.ilm.enabled: false
and in Elasticsearch output:
index: "nginx-%{+yyyy.MM.dd}-%{[fields.type]:nginx}"
index: "nginx-%{+yyyy.MM.dd}-%{[fields.type]:app}"
But is something wrong.
In Elastic I can create nginx index, can't create app index and still logs are from two paths.
I would be grateful for your advice.
