According to the link => https://www.elastic.co/guide/en/beats/filebeat/6.8/ilm.html#_advanced_ilm_settings
I am trying to create multiple indices from filebeat output to elasticsearch.
Here is my filebeat.yml.
- type: log
enabled: true
paths:
- C:\es790\filebeat-7.9.0\jsonlog1.json
tags: ["xxxx"]
processors:
- add_fields:
target: ''
fields:
diff: adminportal
- input_type: log
paths:
- C:\es790\filebeat-7.9.0\jsonlog1.json
tags: ["yyyy"]
processors:
- add_fields:
target: ''
fields:
diff: ruleengine
setup.template.enabled: false
output.elasticsearch:
index: logs-%{event.diff}
hosts: ["localhost:9200"]
pipeline: "pipeline_test"
ilm.enabled: true
When I start the filebeat, I get following error
ERROR instance/beat.go:951 Exiting: error initializing publisher: unsupported format expression "event.diff" in index
Exiting: error initializing publisher: unsupported format expression "event.diff" in index
Looks like the line
output.elasticsearch.index: logs-%{event.diff}
causing the error. But the link I attached above mention such possibility.
Any help.