Getting Data In

Splunk REST Modular Input - POST requests?

yitzarad
Path Finder

Hi,

The new Splunk REST modular input (which is still beta) is very nice and usefull. I'm using it to poll jmx via Jolokia webapp, and it works great.

But, there are some cases you want to poll the REST interface by using POST request. for example, if I want to query multiple MBeans. Jolokia supports this only via POST request. I'm sure that there are many more examples.

How can I solve it?

REST API Modular Input App

Tags (3)
0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Ok, it's your lucky day , download the latest version , of the REST Modular Input.

Added in support for POST and PUT HTTP Methods.

Not RESTful per say but a useful out for API's that are "REST like"

View solution in original post

Damien_Dallimor
Ultra Champion

Ok, it's your lucky day , download the latest version , of the REST Modular Input.

Added in support for POST and PUT HTTP Methods.

Not RESTful per say but a useful out for API's that are "REST like"

Damien_Dallimor
Ultra Champion

"Jolokia supports this only via POST request"....that is not really RESTful then. POST should be used for creating. Actually , just browsing the Jolokia docs , the Jolokia interface is mentioned as only being "REST Like".

I might add a non RESTful option to support POSTs and Body Content. It's a trivial addition.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...