Getting Data In

App install using REST api and URL

awesomo9000
Engager

The REST API docs indicate that it is possible to install an app via "URL". Using splunk 4.1.6, this response is given when using the "name" parameter with curl and a URL to use for app install.

curl -u "user:pass" -k "https://1.2.3.4:8089/services/apps/local/appinstall/" -d name="http://1.2.3.4/test.spl"

In the xml output:

Application name can only contain the following characters: a-zA-Z0-9_

How do you install an app using REST from a URL?

Tags (2)
1 Solution

Leo
Splunk Employee
Splunk Employee

The correct endpoint to use is /apps/appinstall.

please try:

curl -u "user:pass" -k "https://1.2.3.4:8089/services/apps/appinstall" -d name="http://1.2.3.4/test.spl"

View solution in original post

Leo
Splunk Employee
Splunk Employee

The correct endpoint to use is /apps/appinstall.

please try:

curl -u "user:pass" -k "https://1.2.3.4:8089/services/apps/appinstall" -d name="http://1.2.3.4/test.spl"
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...