REST interface for logstash input plugin

Hi All,
I am trying to create a REST interface for my logstash input plugin to interact with it. I want to expose some REST endpoints so that I can index documents in logstash through my input plugin. I am using Logstash 5.1.2. Any ideas on how to do this?

Thanks,
Madhav.

I don't think there are any particular restrictions on what Logstash plugins can do in this regard so any Ruby code for creating REST APIs should work fine here too.

You know that Logstash already has the http input plugin, right?

@magnusbaeck thank you for your input.

Yes, I am aware of http input plugin. My use-case is slightly different from http-input plugin though, which is why I am trying to build a REST interface.

Thanks,
Madhav.

Okay. And what specific problems are you having? Given the existence of the http input plugin and the widespread availability of Ruby REST code it's not clear what you want help with.

I should have phrased my question better in the first post, sorry about that!

I was essentially looking for two things -

  1. are there any restrictions to use Ruby REST in the plugin, and
  2. examples for REST API inside the plugin if there were any

Your reply provides answers to #1, and I am now looking for plugin examples which have REST based interface implemented.

Thanks,
Madhav.

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