

Using the authenticate mode of this script provides an easy, command-line native way to retrieve these values. Valid session tokens are both sid and SSOID, or alternatively sessionid. Note that some older apps deviate from this format you should use exactly what apppears on Splunkbase as the value for the app_version argument. **1234**/ The latter is located in the right-hand column of the app's Splunkbase page, typically in semantic versioning format x.y.z. The former is typically a 3 or 4 digit number, and can be located in the app's Splunkbase URL, e.g.
SPLUNK BASE DOWNLOAD
Identifying the Splunkbase app to download requires two pieces of information: app_id and app_version. The standard curl progress/output is printed to the comamnd line. The complete app package is written to the current directory with the server-supplied filename, typically app-name_version.tgz. In download mode, you supply the app information (ID and version) along with a valid session token (sid+SSOID or sessionid), and the script downloads the app package. splunkbase-download.sh download app_id app_version sessionidĪpp_version The Splunk app version, usually x.y.z splunkbase-download.sh download app_id app_version sid ssoid

SPLUNK BASE PASSWORD
splunkbase-download.sh authenticate username password splunkbase-download.sh MODE ARGUMENTS.Ī|auth|authenticateĚuthenticate and return sid/SSOID cookiesĭ|down|download Download an app by ID and version Splunkbase App Console Download Utility 1.0.0 Simply clone the repository, make the script executable, and run it: This was tested with BusyBox 1.31.1 ash and curl 7.67.0 on Alpine Linux 3.11.6. PrerequisitesĪ few basic requirements are all that's needed: A few very straightforward dependencies are listed below, along with a copy-and-paste command to pull the script down. Using this utility is as simple as downloading the script and running it. It can also be integrated into build scripts for education or development Splunk deployments in order to automate the installation of apps. This allows downloading apps for inspection/validation, staging apps for later installation, or installing apps while Splunk is unavailable, and saves the additional step of transferring apps from another system. This utility provides a convenient method for Splunk administrators to download Splunkbase apps from the command line.
