# All JSON inside message property

**URL:** https://discuss.elastic.co/t/all-json-inside-message-property/310477
**Category:** Beats
**Tags:** filebeat
**Created:** [July 24, 2022, 9:59am UTC](https://discuss.elastic.co/t/all-json-inside-message-property/310477 "2022-07-24T09:59:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Itay\_Zemah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itay_zemah/32/108762_2.png) [@Itay\_Zemah](https://discuss.elastic.co/u/Itay_Zemah)
#### Post date: [July 24, 2022, 9:59am UTC](https://discuss.elastic.co/t/all-json-inside-message-property/310477/1 "2022-07-24T09:59:40Z")

</div>

I want to log my NodeJS logs which written to a file.  
I have configure filebeat to read those files and pass them to my self-managed elasticsearch + kibana.  
All the json content is written to the message property.  
I want to make this json to be in the root log so i can use the keys to search etc..  
Here is my filebeat.inputs in filebeat.yml file

```auto
filebeat.inputs:
  - type: filestream
    id: my-filestream-id
    enabled: true
    paths:
      - /MY/PATH/TO/JSON/FILE/app.json
    json.keys_under_root: true
    json.overwrite_keys: true
    json.add_error_key: true
    json.expand_keys: true

```

---

<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: [August 21, 2022, 12:00pm UTC](https://discuss.elastic.co/t/all-json-inside-message-property/310477/2 "2022-08-21T12:00:06Z")

</div>

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