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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

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

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...