Hi Team
With ILM policy, we can do rollover using different parameters such as size/document_count/age. This works fine and if we create first index with date-math, we are able to generate date-wise index.
But the problem is the index rollover happens only when the rollover conditions are satisfied, it does not rollover when the date is changed but rollover conditions are not satisfied.
So for example, lets consider that we have created index with date-math and rollover settings are such that index will rollover on 50 gb size. Now we have some indices which are getting rollover at every 50 gb. e.g., index-name-2021.04.29-000035, index-name-2021.04.29-000036 and so on...
Lets consider that index-name-2021.04.29-000036 is created at 23.57 on date 04/29/2021 and by the time date is changed to 04/30/2021, it may not have 50 gb data, so it won't rollover evenif the date is changed. So, whatever the new incoming data is there on 04/30/2021 will be indexed to index-name-2021.04.29-000036 until it reaches to 50 gb and after that only new index will be created with index-name-2021.04.30-000037. So some of the data from 04/30/2021 are indexed inside index-name-2021.04.29-000036.
Ideally this index should be rollover as and when the date changes and evenif the size condition is not satisfied. Is there a way that we can achieve this ?
Any help will be much appreciated.
Thanks & Regards