# How to change the field type in the fields.yml on fly

**URL:** <https://discuss.elastic.co/t/how-to-change-the-field-type-in-the-fields-yml-on-fly/197968>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 4, 2019, 2:53am UTC](https://discuss.elastic.co/t/how-to-change-the-field-type-in-the-fields-yml-on-fly/197968 "2019-09-04T02:53:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul\_mohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_mohan/32/53538_2.png) [@rahul\_mohan](https://discuss.elastic.co/u/rahul_mohan)\
**Post date:** [September 4, 2019, 2:53am UTC](https://discuss.elastic.co/t/how-to-change-the-field-type-in-the-fields-yml-on-fly/197968/1 "2019-09-04T02:53:20Z")

</div>

Hello,

I am using the default fields.yml that comes with filebeat.  
However, I want to change the type of a field "message" from "text" to "object". But, I don't want to create a new fields.yml with this change.  
Can i have a way through filebeat.yml config to change the type on the fly?  
Please suggest.

---

<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 2, 2019, 2:53am UTC](https://discuss.elastic.co/t/how-to-change-the-field-type-in-the-fields-yml-on-fly/197968/2 "2019-10-02T02:53:22Z")

</div>

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