Ben96
(Ben Martineau)
March 15, 2018, 2:50pm
1
Hi,
I just started Creating & Deleting indices with Curator.
I would like to create the indices of the next month but when i'm doing this in my action file :
name: '<toto-{now/M+1M}>'
If i take the current date : YYYY.MM.dd, we are : 2018-03-15
Curator create indices with this date : 2018-04-01
i would like this to be : 2018-04-15
I'm a newbie in curator so if anyone could explain how it works, this could be great
Regards, Ben
A_B
March 15, 2018, 4:24pm
2
This is just a wild guess...
Your /M
will return only whole months. Kind of which month are you in, which is 3. 3+1 = 4.
The index is created for the start of the 4th month.
Just +1M
should add one month to now
.
Ben96
(Ben Martineau)
March 16, 2018, 7:17am
3
HI @A_B
Thanks for your quick reply,
I tried what you tell me before, but i got a syntax error, i'm maybe wrong in the configuration file
<'toto-{now/+1M}>'
Return a syntax error (+) is unknown
'unit [+] not supported for date math [/+1M]'
So i delete the "+" but index is created at this date : 2018-03-01
Maybe you know what kind of mistake i'v make.
A_B
March 16, 2018, 7:47am
4
Did you try <'toto-{now+1M}>'
? Still haven't looked at documentation so also a guess...
1 Like
Ben96
(Ben Martineau)
March 16, 2018, 9:25am
5
Thanks a lot ! You were right that was that <toto-{now+1M}>
Thanks for helping me dude !
system
(system)
Closed
April 13, 2018, 9:25am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.