Date (Snapshot) - Month name in English for snapshot policy

Hi,

I want Elasticsearch snapshots named with date in english and date in numerals when they are created.

With the following template snapshot_MMYYYY_foo

Something like this: snapshot_nov2021_foo

How this can be done?

As far as reading the documentation goes, i know i can do something like

<snapshot_{now{MM-yyyy}}_foo>

But that will give me 'snapshot_11-2021_foo',and not 'snapshot_nov2021_foo'

Please advice.

Regards

I believe that instead of MM you can say MMM to get a three-character abbreviation, or MMMM for the full month name, but I will note that this will mean that sorting the snapshots by name is not the same as sorting them in time order which tends to cause pain.

Also are you only taking one snapshot per month? You should take them more often than that, typically multiple times per day.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.