# SLM cron expression

**URL:** <https://discuss.elastic.co/t/slm-cron-expression/327357>\
**Category:** Kibana\
**Tags:** ilm-index-lifecycle-management, slm-snapshot-lifecycle-management\
**Created:** [March 9, 2023, 12:31pm UTC](https://discuss.elastic.co/t/slm-cron-expression/327357 "2023-03-09T12:31:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_kr](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@Gaurav\_kr](https://discuss.elastic.co/u/Gaurav_kr)\
**Post date:** [March 9, 2023, 12:31pm UTC](https://discuss.elastic.co/t/slm-cron-expression/327357/1 "2023-03-09T12:31:30Z")

</div>

Hi Team,  
I am using a slm policy and wanted to add the cron expression such that it run on every 26th day. e.g for 1st month jan it run on 26/01/2023 and then run on +26 days that is 21/02/2023 and so on. Can someone please suggest how I can add this expression? Thank you.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [March 10, 2023, 12:55pm UTC](https://discuss.elastic.co/t/slm-cron-expression/327357/2 "2023-03-10T12:55:36Z")

</div>

> [@Gaurav\_kr](#):
>
> Can someone please suggest how I can add this expression?

This is not possible.

You may be able to use a cron expression that will run every `26th`, but it will be on the `26th` in that month, not 26 days after the last run, so it will run on 26th of January, 26th of February, 26th of March etc

---

<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:** [April 7, 2023, 12:56pm UTC](https://discuss.elastic.co/t/slm-cron-expression/327357/3 "2023-04-07T12:56:13Z")

</div>

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