I have been trying to set up the index life cycle policies to my active index already available.
My index names are X, Y, Z. Trying to assign a policy to roll over once reaching 25 GB.
I'm creating the index name in the output part of logstash.
I went through multiple docs provided by elastic.co. But I feel it is not clear or straight forward.
The docs mentioned to create alias name for my index and it throws error that it does not match the pattern like X-000001, Y-000001, Z-000001.
I tried creating an alias of the same way but getting the error "index name does not match pattern '^.*-\d+$'"
Could some one share the steps correctly on the following
- how the index name should be present in logstash.
- how to create a template in Kibana to map to an index.
- how to create an index which satisifes the roll over condition.