# Logstash output to elasic with a pretty print JSON field, but as string (not scattered to fields)

**URL:** <https://discuss.elastic.co/t/logstash-output-to-elasic-with-a-pretty-print-json-field-but-as-string-not-scattered-to-fields/285804>\
**Category:** Logstash\
**Created:** [October 4, 2021, 10:28am UTC](https://discuss.elastic.co/t/logstash-output-to-elasic-with-a-pretty-print-json-field-but-as-string-not-scattered-to-fields/285804 "2021-10-04T10:28:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dotaneli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dotaneli/32/92225_2.png) [@dotaneli](https://discuss.elastic.co/u/dotaneli)\
**Post date:** [October 4, 2021, 10:28am UTC](https://discuss.elastic.co/t/logstash-output-to-elasic-with-a-pretty-print-json-field-but-as-string-not-scattered-to-fields/285804/1 "2021-10-04T10:28:30Z")

</div>

Hi all.

I have a pipline that take a JSON from filebeat.  
That json has fields that hold json themselvers. Escaped.

I want to see in discover the json field as a pretty printed json, but think that I first need to send it pretty from logstash.

How am I to accomplish that?

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 1, 2021, 10:29am UTC](https://discuss.elastic.co/t/logstash-output-to-elasic-with-a-pretty-print-json-field-but-as-string-not-scattered-to-fields/285804/2 "2021-11-01T10:29:18Z")

</div>

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