I use ElasticSearch 6.1 and I want automatically change my index for metrics data everyday.
This changed index can include current data or just increased number.
So, for some metrics in one day it can be "metrics-2018.01.18" and for another data on the next day it must be "metrics-2018.01.19". The same may be with increasing of a number.
May you advice something for this?
P.S. I use Java with Elastic.
Do the date math computation in Java then. Should not be hard.
If you really want to do that on elasticsearch side, you can define an ingest pipeline which uses an date index name processor: https://www.elastic.co/guide/en/elasticsearch/reference/current/date-index-name-processor.html
Thanks, I've done it on Java side.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.