# Is there a way to validate or dry run the index templates config before applying?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244>\
**Category:** Elasticsearch\
**Created:** [September 28, 2020, 5:30pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244 "2020-09-28T17:30:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShenWan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shenwan/32/76343_2.png) [@ShenWan](https://discuss.elastic.co/u/ShenWan)\
**Post date:** [September 28, 2020, 5:30pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244/1 "2020-09-28T17:30:29Z")

</div>

We plan to store index templates in Phabricator and would like to validate a diff before landing it and HTTP PUT to ES.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 29, 2020, 2:31am UTC](https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244/2 "2020-09-29T02:31:38Z")

</div>

Welcome to our community! 😃

This isn't something that currently exists in Elasticsearch. If you'd like to see it, please create a feature request on GitHub.

---

<div class="post-metadata">

**Author:** ![ShenWan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shenwan/32/76343_2.png) [@ShenWan](https://discuss.elastic.co/u/ShenWan)\
**Post date:** [September 29, 2020, 3:07pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244/3 "2020-09-29T15:07:58Z")

</div>

> [@ShenWan](#):
>
> We plan to store index templates in Phabricator and would like to validate a diff before landing it and HTTP PUT to ES.

> <https://github.com/elastic/elasticsearch/issues/63019>
>
> We plan to store index templates in Phabricator and would like to validate a dif…f before landing it and HTTP PUT to ES.
> 
> Without dry-run support, we would have to either hope that the new config does not break ES, or find a way to hack some local ES instance to apply the config to.
> 
> A dry-run param in the HTTP PUT request should be easy to implement and would make API users' life much easier.

---

<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:** [October 27, 2020, 3:07pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-validate-or-dry-run-the-index-templates-config-before-applying/250244/4 "2020-10-27T15:07:59Z")

</div>

Closed on October 27, 2020, 3:07pm UTC

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