- Update the 'index' field in output.elasticsearch [e.g. win-host-%{yyyy-mm-dd}]
- Update the 'setup.template.name' and 'setup.template.pattern' accordingly [e.g., win- and win-*]
- Disable ILM because custom template naming won't work if this is enabled i.e., setup.ilm.enabled: false
- Load the custom template: .\winlogbeat.exe setup --index-management -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["192.168.18.110:1337"]'
- Restart the winlogbeat service
Refresh the indexes such that the updated mapping can apply to the indexes. Use the refresh API using:
GET /win-*/_refresh
Blog on the same topic:
https://discuss.elastic.co/t/how-can-i-change-winlogbeat-name-in-template-name/98442/10