# Logstash filter for parsing nested json

**URL:** <https://discuss.elastic.co/t/logstash-filter-for-parsing-nested-json/195299>\
**Category:** Logstash\
**Created:** [August 15, 2019, 5:59am UTC](https://discuss.elastic.co/t/logstash-filter-for-parsing-nested-json/195299 "2019-08-15T05:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![binoy\_cg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/binoy_cg/32/52347_2.png) [@binoy\_cg](https://discuss.elastic.co/u/binoy_cg)\
**Post date:** [August 15, 2019, 5:59am UTC](https://discuss.elastic.co/t/logstash-filter-for-parsing-nested-json/195299/1 "2019-08-15T05:59:34Z")

</div>

I am trying to ingest a nested json file from couchdb using couchdb\_changes plugin ,since the number of fields are very huge I tried with increasing the maximum number of field parameter for the index  
but finally Elasticsearch crashed due to out of memory . so now I want to a configure the logstash filter to forward only the minimal required fields to Elasticsearch , i tried ingesting only part of the data to see the the field names in ES ,it appears like below ...

doc.docs.data.\<cluster\_name\>.\<domain\_name\>.numCpuCores , As you can see here numCpuCores only contant in this field , Please suggest a way to parse only the required fields to ES .

---

<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:** [September 12, 2019, 5:59am UTC](https://discuss.elastic.co/t/logstash-filter-for-parsing-nested-json/195299/2 "2019-09-12T05:59:43Z")

</div>

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