# Can the depth be specified in the json of inputs

**URL:** https://discuss.elastic.co/t/can-the-depth-be-specified-in-the-json-of-inputs/371679
**Category:** Beats
**Tags:** filebeat
**Created:** [December 9, 2024, 7:43am UTC](https://discuss.elastic.co/t/can-the-depth-be-specified-in-the-json-of-inputs/371679 "2024-12-09T07:43:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![debuggedme](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debuggedme/32/139805_2.png) [@debuggedme](https://discuss.elastic.co/u/debuggedme)
#### Post date: [December 9, 2024, 7:43am UTC](https://discuss.elastic.co/t/can-the-depth-be-specified-in-the-json-of-inputs/371679/1 "2024-12-09T07:43:27Z")

</div>

in the processors, the decode\_json\_fields supports specifying the depth.

can the depth be specified in the json of inputs

```yaml
filebeat.inputs:
  - type: stdin
    json.message_key: ""
processors:
  - decode_json_fields:
      fields: ["log"]
      max_depth: 2

```
