# Dumping nested JSON into a searchable text field?

**URL:** <https://discuss.elastic.co/t/dumping-nested-json-into-a-searchable-text-field/146919>\
**Category:** Elasticsearch\
**Created:** [August 31, 2018, 9:40pm UTC](https://discuss.elastic.co/t/dumping-nested-json-into-a-searchable-text-field/146919 "2018-08-31T21:40:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rozling](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rozling/32/16401_2.png) [@rozling](https://discuss.elastic.co/u/rozling)\
**Post date:** [August 31, 2018, 9:40pm UTC](https://discuss.elastic.co/t/dumping-nested-json-into-a-searchable-text-field/146919/1 "2018-08-31T21:40:30Z")

</div>

Hi,

We use Filebeat to send JSON logs to Logstash and then on to Elasticsearch.

Some of these logs are very verbose and along with a message field / fields of basic datatypes contain one or more JSON payloads (usually `data.x.y.z`) which we don't necessarily want to parse out, but want to be able to search.

I understand that I can set `"type":"object"` and `"enabled":false`, but while this leaves the original nested structure in the `_source`, it's not searchable.

Is there any way we can just pass through the JSON payload to Elasticsearch as one big searchable text blob?

---

<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 28, 2018, 9:40pm UTC](https://discuss.elastic.co/t/dumping-nested-json-into-a-searchable-text-field/146919/2 "2018-09-28T21:40:39Z")

</div>

Closed on September 28, 2018, 9:40pm UTC

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