# Logstash JSON codec vs JSON filter performance

**URL:** <https://discuss.elastic.co/t/logstash-json-codec-vs-json-filter-performance/217334>\
**Category:** Logstash\
**Created:** [January 31, 2020, 9:24am UTC](https://discuss.elastic.co/t/logstash-json-codec-vs-json-filter-performance/217334 "2020-01-31T09:24:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TWhitehouse](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@TWhitehouse](https://discuss.elastic.co/u/TWhitehouse)\
**Post date:** [January 31, 2020, 9:24am UTC](https://discuss.elastic.co/t/logstash-json-codec-vs-json-filter-performance/217334/1 "2020-01-31T09:24:50Z")

</div>

Hey  
If I have input coming into a pipeline in JSON format, which is faster to use?  
I have multiple pipeline workers, so multiple threads executing filter+output.

I was thinking input would be essentially 1 thread as it pulls the data and executes the codec in-line, and the filter would be executing in parallel per pipeline worker, so would be faster but i'm not entirely sure.

Have I missed something or misunderstood something?

Thanks in advance

---

<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:** [February 28, 2020, 9:30am UTC](https://discuss.elastic.co/t/logstash-json-codec-vs-json-filter-performance/217334/2 "2020-02-28T09:30:07Z")

</div>

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