# Migration from scripted to runtime field

**URL:** <https://discuss.elastic.co/t/migration-from-scripted-to-runtime-field/299484>\
**Category:** Kibana\
**Created:** [March 11, 2022, 5:47pm UTC](https://discuss.elastic.co/t/migration-from-scripted-to-runtime-field/299484 "2022-03-11T17:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [March 11, 2022, 5:47pm UTC](https://discuss.elastic.co/t/migration-from-scripted-to-runtime-field/299484/1 "2022-03-11T17:47:01Z")

</div>

We have a scripted field, for example winlogbeat.user\_data.mysf (my snowflake). I guess we are forced to move this to a runtime field, they were deprecated in 7.13, but I'm not sure when they really quit working.

My winlogbeat client is older, so my plan is to create a new component template with the runtime filed, install a new winlogbeat template, have it include the component template, then upgrade the client.

Can I use the same field name or do I need to use a new name?

Thanks

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [March 21, 2022, 12:37pm UTC](https://discuss.elastic.co/t/migration-from-scripted-to-runtime-field/299484/2 "2022-03-21T12:37:36Z")

</div>

Hello, unfortunately if you want to have both scripted field and runtime field in your data view at the same time (even if only to migrate), they cannot have the same name.

Here, trying to add a runtime field names the same as existing scripted field.

 ![Screenshot 2022-03-21 at 13.36.08](https://us1.discourse-cdn.com/elastic/original/3X/9/1/918765354422a8babacefaffb2e8e5b1162d8af6.png)

---

<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 18, 2022, 12:37pm UTC](https://discuss.elastic.co/t/migration-from-scripted-to-runtime-field/299484/3 "2022-04-18T12:37:53Z")

</div>

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