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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

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