All Apps and Add-ons

How to invoke post request to REST service configured using REST API Modular input

cse9423
Explorer

I have configured the REST data input for my rest webservice and i was able to call the get request easily (index=main sourcetype=myrestoperation_configured_at_datainput). I also have post method which takes json input. how do i invoke post rest request from splunk query? I appreciate any help.

Tags (1)
0 Karma

kitwalker12
Engager

@cse9423 were you able to invoke the webservice

0 Karma

Damien_Dallimor
Ultra Champion

alt text

cse9423
Explorer

Thanks Damien for your reply.

I have already done this. How do i pass json input to post webservice from splunk query?

The splunk query for get: index=main sourcetype=getrequest ---> work fine

i am looking for post: index=main sourcetype=postrequest ---> how do i pass json input here??

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...