# Question: Possible to override the response body of http-input plugin?

**URL:** <https://discuss.elastic.co/t/question-possible-to-override-the-response-body-of-http-input-plugin/79482>\
**Category:** Logstash\
**Created:** [March 21, 2017, 5:48pm UTC](https://discuss.elastic.co/t/question-possible-to-override-the-response-body-of-http-input-plugin/79482 "2017-03-21T17:48:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.42](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul.42/32/16567_2.png) [@paul.42](https://discuss.elastic.co/u/paul.42)\
**Post date:** [March 21, 2017, 5:48pm UTC](https://discuss.elastic.co/t/question-possible-to-override-the-response-body-of-http-input-plugin/79482/1 "2017-03-21T17:48:22Z")

</div>

We're trying to send data from a .net application to logstash for ingest into elastic search, I was wondering if we could use a more REST oriented class, sending/receiving JSON. When we set the response-header to be application/json, that looks like it works, but as a minor point, the data sent back [hardcoded ok](https://github.com/logstash-plugins/logstash-input-http/blob/d2fa735843f2f906b63bc7fa5e67f59960289ce5/lib/logstash/inputs/http.rb#L146) looks hardcoded and technically isn't valid json.

I'm wondering if there is any way to override the 'ok' or surface a variable in the logstash config to override it so it's "{"message":"ok"}" if the codec is json or something?

is there an easy way to fork on github and install plugins from github where I can override this?

Thanks in advance,  
Paul

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 22, 2017, 6:37am UTC](https://discuss.elastic.co/t/question-possible-to-override-the-response-body-of-http-input-plugin/79482/2 "2017-03-22T06:37:57Z")

</div>

> is there an easy way to fork on github and install plugins from github where I can override this?

The logstash-plugin command installs gems, either from e.g. [rubygems.org](http://rubygems.org) or from local files so you can build a new gem and install it.

---

<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:** [April 19, 2017, 6:38am UTC](https://discuss.elastic.co/t/question-possible-to-override-the-response-body-of-http-input-plugin/79482/3 "2017-04-19T06:38:07Z")

</div>

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