I am struggling with ILM. I want to find out if I can change our environment to use it.
Currently we have two fields in our events, which are used for creating the index:
- logType (defines the part of the application which logged the event (e.g. session, timer, http, ...)
- stage (defines the stage of the system (e.g. dev, staging, prod, ...)
Logstash is currently calculating the index pattern like this:
This results in index names like
So currently install new stages or define new logTypes in our application, the splitting to new indices is plug and play, so nothing to do in elasticsearch or logstash. Thats nice.
But if I understand correctly, I need to bootstrap indices for using ILM, that means I have to know all stage and logType combinations before they are inserted via logstash. Is that correct?
Is there any way to bootstrap it automatically and set staging-session-2020.04.20 or at least staging-session as alias automatically?
Thanks a lot,