# Which codec parameter we can use for logstash http input section

**URL:** <https://discuss.elastic.co/t/which-codec-parameter-we-can-use-for-logstash-http-input-section/321405>\
**Category:** Logstash\
**Created:** [December 16, 2022, 11:30am UTC](https://discuss.elastic.co/t/which-codec-parameter-we-can-use-for-logstash-http-input-section/321405 "2022-12-16T11:30:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prashant1](https://avatars.discourse-cdn.com/v4/letter/p/bc8723/32.png) [@prashant1](https://discuss.elastic.co/u/prashant1)\
**Post date:** [December 16, 2022, 11:30am UTC](https://discuss.elastic.co/t/which-codec-parameter-we-can-use-for-logstash-http-input-section/321405/1 "2022-12-16T11:30:31Z")

</div>

We are sending logs from fluentd with http to logstash having version 7.10.2.  
But looks like codec =\> fluent does not work for http for logstash as we got some \_fluentparse error.  
We have tried also using codec =\> json in that case it has missed the logs.

Note: We have tried sending data by tcp from fluentd and in logstash we have used codec =\> fluent and we are able to get all the data. But same codec =\> fluent does not work with http.

Could someone help which codec parameter we can use for logstash, so that all the logs will be received by logstash from fluentd with http?

---

<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:** [January 13, 2023, 11:31am UTC](https://discuss.elastic.co/t/which-codec-parameter-we-can-use-for-logstash-http-input-section/321405/2 "2023-01-13T11:31:00Z")

</div>

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