# Limit json nested level parse

**URL:** https://discuss.elastic.co/t/limit-json-nested-level-parse/152454
**Category:** Logstash
**Created:** [October 15, 2018, 8:35am UTC](https://discuss.elastic.co/t/limit-json-nested-level-parse/152454 "2018-10-15T08:35:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![IngZero2](https://avatars.discourse-cdn.com/v4/letter/i/e95f7d/32.png) [@IngZero2](https://discuss.elastic.co/u/IngZero2)
#### Post date: [October 15, 2018, 8:35am UTC](https://discuss.elastic.co/t/limit-json-nested-level-parse/152454/1 "2018-10-15T08:35:23Z")

</div>

Hi all,  
i've a log like this :  
log: "{  
"time": 1539591679770,  
"msg": "Connection is OK.",  
"checkCompleteInfo": {  
"details": "12345",  
"value" : 2  
}  
}"

After applying json filter to the log field, all the fields are extracted ( also details inside the checkCompleteInfo).  
There's a way to configure logtsash json filter to define the level of parsing?  
I want to extract as fields only the first json level , so

- "Time": "1539591679770"
- "msg": "Connection is OK."
- "checkCompleteInfo" : " "details"": "12345","value":2"

and not

- "Time": "1539591679770"
- "msg": "Connection is OK."
- "checkCompleteInfo.details" : "12345"
- "checkCompleteInfo.value" : "2"

Thanks

---

<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: [November 12, 2018, 8:35am UTC](https://discuss.elastic.co/t/limit-json-nested-level-parse/152454/2 "2018-11-12T08:35:25Z")

</div>

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