Splunk Dev

How to install splunk app in remote splunk using Splunk REST API

mini
Engager

I have installed the app in the local splunk using the Splunk REST API endpoint

https://<host>:<port>/services/apps/local

but when I tried to install the app in remote splunk .It gave error like

"Cannot perform action "POST" without a target name to act on"
 or "Unparsable URI-encoded request data"
 
I included the name(.tar or .spl file) and filename like how it is mention in the splunk docs
 
 
Using this endpoint .I can create the app in remote splunk but I want to upload the app 
 
I tried with requests module and postman. The same error came
 
is there any way to install the app in the remote splunk using postman or requests?
 
Thank you in advance...

 

Labels (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

Well, debugging the web upload process I get a POST action to

https://splunk.server/en-GB/manager/appinstall/_upload

But I doubt that it's the official blessed way to do it on your own.
The API though, indeed states that you either create an app instance with a path to a local file (to which of course the splunkd process must have access) or an URL or application name from Splunkbase.
 
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...