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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...