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

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 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

1 Like

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 or from local files so you can build a new gem and install it.

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