I have an Elasticsearch template with the index pattern: prefix_*
.
I also have multiple subsystems using this template and creating indexes like so: prefix_{subsystem_name}_{date}
(replacing {subsystem_name} and {name} respectively)
I would like to create for each subsystem a separate alias (of its subsystem)
for example for an index "prefix_monitors_20200101" I will have an alias "monitors" and for "prefix_alerts_20200101" I will have an alias "alerts"
How do I do such a thing?