Getting Data In

How do you make post and get calls using REST API through GUI?

ntalwar
New Member

I have post and get request URI's that I use in insomnia to make REST calls. It gets data there, but I need to make post and get calls using Splunk REST GUI. Please help.

I am using the key = '' and content Type= app/jsom for post call. The post request gets a key that I use as a token, using username and password, and the token generates another key, which I use to make a get call, which gets result in insomnia.

I need to make the same post and get calls in splunk. Please help

Thanks

0 Karma

gjanders
SplunkTrust
SplunkTrust

Are you trying to run REST commands in the Splunk search interface?
The rest search command supports the "GET" functionality only, not POST, so you cannot do in the GUI what you can do with REST calls from Insomnia/Postman or curl, however you can write python code to what you want or add a search command that does post-functionality that is similar to the rest command...

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...