Functions for Elasticsearch index rotation.

Needed for Elasticsearch time series task.