# Covert logs to JSON in output section of Logstash before it leaves output

**URL:** <https://discuss.elastic.co/t/covert-logs-to-json-in-output-section-of-logstash-before-it-leaves-output/278975>\
**Category:** Logstash\
**Created:** [July 17, 2021, 2:22pm UTC](https://discuss.elastic.co/t/covert-logs-to-json-in-output-section-of-logstash-before-it-leaves-output/278975 "2021-07-17T14:22:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shadu88](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@shadu88](https://discuss.elastic.co/u/shadu88)\
**Post date:** [July 17, 2021, 2:22pm UTC](https://discuss.elastic.co/t/covert-logs-to-json-in-output-section-of-logstash-before-it-leaves-output/278975/1 "2021-07-17T14:22:13Z")

</div>

Hello ELkan's

Hope all are safe!!!

I'm using kustos output plugin to forward logs to azure data explore which only supports json format, I want to convert my syslog input logs on TCP port to JSON only in kustos output section not in other outputs.  
I dont want to convert to input section because it will impact my other outputs in conf.  
please advice better approach.  
thank you in advance!!

Regards,  
Shadab

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 17, 2021, 5:59pm UTC](https://discuss.elastic.co/t/covert-logs-to-json-in-output-section-of-logstash-before-it-leaves-output/278975/2 "2021-07-17T17:59:29Z")

</div>

> [@shadu88](#):
>
> I want to convert my syslog input logs on TCP port to JSON only in kustos output section not in other outputs.

Use multiple pipelines and a [forked path](https://www.elastic.co/guide/en/logstash/current/pipeline-to-pipeline.html#forked-path-pattern) pattern.

---

<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:** [August 14, 2021, 5:59pm UTC](https://discuss.elastic.co/t/covert-logs-to-json-in-output-section-of-logstash-before-it-leaves-output/278975/3 "2021-08-14T17:59:49Z")

</div>

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