I'm trying to create an index rollover with the date and hour when the new index is created because I set up the rollover every hour during the day. Having this in consideration, the format of the new index should be:
my-index-2021.09.06.14-000001
Is there a way to do this? I tried using date math and returns just the date:
PUT %3Cmy-index-%7Bnow%2Fd%7D-000001%3E
Also tried this, and it doesn't gives the actual time.
PUT /%3Cmy-index-%7Bnow%2Fd%7BYYYY.MM.dd.HH.mm%7D%7D%3E
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.