# SLM Policy Naming

**URL:** <https://discuss.elastic.co/t/slm-policy-naming/287557>\
**Category:** Elasticsearch\
**Created:** [October 25, 2021, 9:19am UTC](https://discuss.elastic.co/t/slm-policy-naming/287557 "2021-10-25T09:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [October 25, 2021, 9:19am UTC](https://discuss.elastic.co/t/slm-policy-naming/287557/1 "2021-10-25T09:19:04Z")

</div>

Hi,  
I'm trying to upload an SLM policy and am getting the following error:

```auto
elasticsearch.exceptions.RequestError: RequestError(400, 'action_request_validation_exception', 'Validation Failed: 1: invalid snapshot name [slm-policy-{now{yyyyMMddHHmm}}]: must be lowercase;')

```

How can I fix this while specifying the snapshot naming format we require? The naming format is currently specified as `slm-policy-{now{yyyyMMddHHmm}}`.

Thx  
D

---

<div class="post-metadata">

**Author:** ![dawiro](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@dawiro](https://discuss.elastic.co/u/dawiro)\
**Post date:** [October 25, 2021, 9:52am UTC](https://discuss.elastic.co/t/slm-policy-naming/287557/2 "2021-10-25T09:52:14Z")

</div>

I've experimented with workarounds for this and nothing has worked. It seems that the the snapshot name doesn't allow us to specify uppercase datemath arguments. Is there something we're doing wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 22, 2021, 9:52am UTC](https://discuss.elastic.co/t/slm-policy-naming/287557/3 "2021-11-22T09:52:44Z")

</div>

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