# Elasticsearch(6.7.1) Index Lifecycle Management Policy Creation

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-7-1-index-lifecycle-management-policy-creation/179304>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [May 2, 2019, 8:02am UTC](https://discuss.elastic.co/t/elasticsearch-6-7-1-index-lifecycle-management-policy-creation/179304 "2019-05-02T08:02:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![safderali5](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@safderali5](https://discuss.elastic.co/u/safderali5)\
**Post date:** [May 2, 2019, 8:02am UTC](https://discuss.elastic.co/t/elasticsearch-6-7-1-index-lifecycle-management-policy-creation/179304/1 "2019-05-02T08:02:53Z")

</div>

I am trying to experiment with Elasticsearch ILM feature. All the documentation and example show how to create ILM Policy, using REST API or using Kibana GUI.

I want to ask is there a way to provide ILM policy Json string in some config file, so that the policy is created automatically, when Elasticserach starts(I am running Elasticserach 6.7.1).

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [May 2, 2019, 3:30pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-1-index-lifecycle-management-policy-creation/179304/2 "2019-05-02T15:30:05Z")

</div>

> [@safderali5](#):
>
> I want to ask is there a way to provide ILM policy Json string in some config file, so that the policy is created automatically, when Elasticserach starts(I am running Elasticserach 6.7.1).

There currently isn't a way to have a policy automatically set up when ES starts, you'll have to add it via the API externally (similar to adding templates).

---

<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:** [May 30, 2019, 3:30pm UTC](https://discuss.elastic.co/t/elasticsearch-6-7-1-index-lifecycle-management-policy-creation/179304/3 "2019-05-30T15:30:09Z")

</div>

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