Is there a way to name the new indices by date? something like:
my-index-(now/d), instead of just an increasing number.
(I'm indexing data by using the API directly, with out any ingestion server)
can be done by creating the first index with the following command:
after that, any other index that is created automatically will get the same template (with an increasing number).
taken from these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/date-math-index-names.html