The current rollover feature supports only rollover by age (some length of time) or by file size (size of index exceeds some number or number of entries exceeds some number). In real business applications, rollover are required for irregular time measures like
- every day - at midnight or every multiple of days like every 2 days, every 4 days, ...etc.
- every week - at midnight or every multiple of weeks like every 2 weeks, every 10 weeks, ...etc
- every month - on 1st of month at midnight (00:00:00 hour) or every 3 months, every 4 months
- every year - on Jan 1st at midnight (00:00:00 hour) or every 2 years, ...etc.
In order to implement such feature, ElasticSearch must support CRON expression based rolloever expressions. See Linux CRON expression on Google Search. CRON expression has been used successfully in several applications.