# \[Help Request\] HTTP Input with Multiline JSON Post Data

**URL:** <https://discuss.elastic.co/t/help-request-http-input-with-multiline-json-post-data/31920>\
**Category:** Logstash\
**Created:** [October 9, 2015, 3:24pm UTC](https://discuss.elastic.co/t/help-request-http-input-with-multiline-json-post-data/31920 "2015-10-09T15:24:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://discuss.elastic.co/u/tmo)\
**Post date:** [October 9, 2015, 3:24pm UTC](https://discuss.elastic.co/t/help-request-http-input-with-multiline-json-post-data/31920/1 "2015-10-09T15:24:11Z")

</div>

I'm trying to parse a newline separated HTTPS POST data feed, each line is a JSON object. I also have an output to elastic search.

Right now I'm trying to use the json\_lines codec and that doesn't seem to be working at all. If I use the json code, that seems to only catch the first object in the POST body.

The HTTPS input plugin is working, just can't get the data to read in and parse into elastic search correctly at this point.

Thank you if anyone can help!

---

<div class="post-metadata">

**Author:** ![tmo](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@tmo](https://discuss.elastic.co/u/tmo)\
**Post date:** [October 9, 2015, 5:59pm UTC](https://discuss.elastic.co/t/help-request-http-input-with-multiline-json-post-data/31920/2 "2015-10-09T17:59:12Z")

</div>

Well, ok, I think I figured it out.

The plugin supports it, but you need to make sure that you aren't sending the JSON header with the request. This seems to override the codec you set in the config.

Also, I put the codec in both the input and output as json\_lines. This seems to have worked for the time being.

---

<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:** [July 6, 2017, 5:26am UTC](https://discuss.elastic.co/t/help-request-http-input-with-multiline-json-post-data/31920/3 "2017-07-06T05:26:57Z")

</div>

Closed on July 6, 2017, 5:26am UTC


