You are only asking it to resolve to the minute, ie: ...{now/m{yyyy... - to resolve down to the seconds, you need to change your expression to to be ...{now/s{yyyy...:
PUT /%3Cdata-index-%7Bnow%2Fs%7Byyyy-MM-dd-HH-mm-ss%7D%7D%3E
I was trying to use it as a naming pattern in my ILM's bootsrapping but I noticed other issues later when the lifecycle policy was trying to rollover the newly created bootstrapped index, with all date math options I tried. Seconds to days (I wanted to have a human readable rolled over index naming convention instead of -000001):
Index lifecycle error
number_format_exception: For input string: "ss}}"
Index lifecycle error
number_format_exception: For input string: "mm}}"
Index lifecycle error
number_format_exception: For input string: "dd}}"
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.