# Json fields are now being added to message field instead of mapped fields

**URL:** <https://discuss.elastic.co/t/json-fields-are-now-being-added-to-message-field-instead-of-mapped-fields/183785>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 31, 2019, 7:00pm UTC](https://discuss.elastic.co/t/json-fields-are-now-being-added-to-message-field-instead-of-mapped-fields/183785 "2019-05-31T19:00:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dataGuy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dataguy/32/47503_2.png) [@dataGuy](https://discuss.elastic.co/u/dataGuy)\
**Post date:** [May 31, 2019, 7:00pm UTC](https://discuss.elastic.co/t/json-fields-are-now-being-added-to-message-field-instead-of-mapped-fields/183785/1 "2019-05-31T19:00:31Z")

</div>

filebeat is mapping my json fields to a "message" field that I have not created and do not allow dynamic fields. Is this because I'm using decode json feature in filebeat.yml? Is there an attribute related to this behavior. I don't have much in my yml, I have had it map directly to the desired fields but it was pulling 100+ fields it shouldnt.

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [June 3, 2019, 7:48am UTC](https://discuss.elastic.co/t/json-fields-are-now-being-added-to-message-field-instead-of-mapped-fields/183785/2 "2019-06-03T07:48:49Z")

</div>

If you would like Filebeat to put the decoded JSON under a specific key, you need to set the option `target` under `decode_json_fields`. See more: [https://www.elastic.co/guide/en/beats/filebeat/master/decode-json-fields.html](https://www.elastic.co/guide/en/beats/filebeat/master/decode-json-fields.html)

---

<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:** [July 1, 2019, 7:48am UTC](https://discuss.elastic.co/t/json-fields-are-now-being-added-to-message-field-instead-of-mapped-fields/183785/3 "2019-07-01T07:48:49Z")

</div>

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