# Skip nested json

**URL:** https://discuss.elastic.co/t/skip-nested-json/175308
**Category:** Elasticsearch
**Created:** [April 4, 2019, 3:38am UTC](https://discuss.elastic.co/t/skip-nested-json/175308 "2019-04-04T03:38:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![koti](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@koti](https://discuss.elastic.co/u/koti)
#### Post date: [April 4, 2019, 3:38am UTC](https://discuss.elastic.co/t/skip-nested-json/175308/1 "2019-04-04T03:38:37Z")

</div>

Hi

if the input json message having the nested json, I need to skip the processing the log .

Please suggest

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [April 4, 2019, 9:47am UTC](https://discuss.elastic.co/t/skip-nested-json/175308/2 "2019-04-04T09:47:45Z")

</div>

Hey,

it is somewhat unclear to me, what exactly you are after? Two things come to mind here. First, you do not want to make a part of your JSON document searchable. If that is the case you mark it as `enabled: false` in the mapping. See [https://www.elastic.co/guide/en/elasticsearch/reference/6.7/enabled.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/enabled.html)

Second, you really want to drop a document, based on its content. You could use the [drop processor](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/drop-processor.html) to do this.

--Alex

---

<div class="post-metadata">

### Author: ![koti](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@koti](https://discuss.elastic.co/u/koti)
#### Post date: [April 4, 2019, 1:18pm UTC](https://discuss.elastic.co/t/skip-nested-json/175308/3 "2019-04-04T13:18:18Z")

</div>

Hi Alex,

Thanks for you reply.  
I have the log with below content as nested json . So i dont want to process /send to output xml . Can you please help me .  
Thanks for your support

{  
"sample": {  
"someitem": {  
"thesearecool": [  
{  
"neat": "wow"  
},  
{  
"neat": "tubular"  
}  
]  
}  
}  
}

---

<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: [May 2, 2019, 1:18pm UTC](https://discuss.elastic.co/t/skip-nested-json/175308/4 "2019-05-02T13:18:21Z")

</div>

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