# Script field is automatically deleted from the index pattern

**URL:** <https://discuss.elastic.co/t/script-field-is-automatically-deleted-from-the-index-pattern/316175>\
**Category:** Elasticsearch\
**Created:** [October 10, 2022, 6:16am UTC](https://discuss.elastic.co/t/script-field-is-automatically-deleted-from-the-index-pattern/316175 "2022-10-10T06:16:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [October 10, 2022, 6:16am UTC](https://discuss.elastic.co/t/script-field-is-automatically-deleted-from-the-index-pattern/316175/1 "2022-10-10T06:16:54Z")

</div>

Hi Community,  
recently we add a custom field that parse the string field to integer field that time it was showing and after 7 days it is deleted.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/4/2454794560ba01fbe732e0bce1d29cb77ac4d40c.png)

We have added the field by clicking on `Add Field`.

---

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [October 10, 2022, 12:23pm UTC](https://discuss.elastic.co/t/script-field-is-automatically-deleted-from-the-index-pattern/316175/2 "2022-10-10T12:23:50Z")

</div>

Sorry team it was my mistake i choose the wrong index

---

<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 7, 2022, 12:23pm UTC](https://discuss.elastic.co/t/script-field-is-automatically-deleted-from-the-index-pattern/316175/3 "2022-11-07T12:23:57Z")

</div>

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