# Sql server sourse with nvarchar(max) field as json document , how can i parse it into elastic as nested document

**URL:** <https://discuss.elastic.co/t/sql-server-sourse-with-nvarchar-max-field-as-json-document-how-can-i-parse-it-into-elastic-as-nested-document/86900>\
**Category:** Logstash\
**Created:** [May 24, 2017, 6:13am UTC](https://discuss.elastic.co/t/sql-server-sourse-with-nvarchar-max-field-as-json-document-how-can-i-parse-it-into-elastic-as-nested-document/86900 "2017-05-24T06:13:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![neo](https://avatars.discourse-cdn.com/v4/letter/n/9fc348/32.png) [@neo](https://discuss.elastic.co/u/neo)\
**Post date:** [May 24, 2017, 6:13am UTC](https://discuss.elastic.co/t/sql-server-sourse-with-nvarchar-max-field-as-json-document-how-can-i-parse-it-into-elastic-as-nested-document/86900/1 "2017-05-24T06:13:58Z")

</div>

sql server sourse with nvarchar(max) field as json document , how can i parse it into elastic as nested document

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 28, 2017, 6:39pm UTC](https://discuss.elastic.co/t/sql-server-sourse-with-nvarchar-max-field-as-json-document-how-can-i-parse-it-into-elastic-as-nested-document/86900/2 "2017-05-28T18:39:47Z")

</div>

Use a json filter with the `source` option set to the name of the field with the JSON string.

---

<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:** [June 25, 2017, 6:39pm UTC](https://discuss.elastic.co/t/sql-server-sourse-with-nvarchar-max-field-as-json-document-how-can-i-parse-it-into-elastic-as-nested-document/86900/3 "2017-06-25T18:39:49Z")

</div>

Closed on June 25, 2017, 6:39pm UTC

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