All Apps and Add-ons

Installing apps available in SplunkBase via splunk CLI

ianformanek
Explorer

I am trying to automate the installation of apps (as part of automating the whole splunk server creation), and since there is the nice ./splunk install app <file/link> command, I was hoping I could just use

./splunk install app http://splunkbase.splunk.com/apps:startdownload/PDF+Report+Server+-+install+on+Linux+only/1.3/pdfser...

or even better

./splunk install app pdfserver where I would just refer to a unique global app name (in the spirit of apt/yum)

but neither works - the download link probably only works in a browser (curl also chokes on it, giving an error that JavaScript is required).

Is there any way to make this work that I missed (aside from downloading the app manually and putting it on my server and pointing the automation/CLI to that file)?

Tags (1)

tfrederick74656
Explorer

I wrote a script to do this. It allows you to authenticate to Splunkbase and download an app.
Once you have the app.tgz, you can use the standard ./splunk install app <filename> syntax.

https://github.com/tfrederick74656/splunkbase-download

I realize this reply comes about 9 years too late, but hopefully it helps someone else in the future.

MuS
SplunkTrust
SplunkTrust

Hi ianformanek

did you try to use this link as well?

splunk install app http://splunk-base.splunk.com/apps/22348/download/

cheers

ianformanek
Explorer

Just tried, same result (An error occurred: file could not be opened successfully) - that url is just a redirect to the one I tried earlier.

Seems like this is a way to enforce accepting license on download.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...