@warkolm Thanks for your answare
I changed the configuration
setup.template.settings:
index.number_of_shards: 1
setup.ilm.rollover_alias: "filebeat-7.10.2"
setup.ilm.enabled: true
setup.ilm.pattern: "{now/d}-000001"
setup.ilm.policy_name: "filebeat-7.10.2"
setup.ilm.overwrite: false
setup.ilm.check_exists: true
output.elasticsearch:
hosts: ["els-mon1.local.com","els-mon2.local.com","els-mon3.local.com"]
index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"
protocol: "https"
username: "filebeat_setup"
password: ""
indices:
- index: "filebeat-%{[agent.version]}-api-%{+yyyy.MM.dd}"
when.contains:
message: "webapi"
setup.ilm.rollover_alias: "filebeat-7.10.2-api"
setup.ilm.enabled: true
setup.ilm.pattern: "{now/d}-000001"
setup.ilm.policy_name: "filebeat-7.10.2-api"
setup.ilm.overwrite: false
setup.ilm.check_exists: true
setup.template:
name: "filebeat-7.10.2-api"
pattern: "filebeat-7.10.2-api-*"
enabled: true
overwrite: false
I'm trying to do it and I want that all logs with webapi into the message are stored into the filebeat-%{[agent.version]}-api-%{+yyyy.MM.dd} the other into filebeat-%{[agent.version]}-%{+yyyy.MM.dd}. I set up two different policy filebeat-7.10.2-api and filebeat-7.10.2
but I have the same problem with "api" index it does not make rollover.
Any idea?
Thanks so much