Installation

Dependency check for installed apps

flo_cognosec
Communicator

Hi

I am thinking on how to implement a dependency check in splunk.
Use case: My custom app requires the *nix app to be installed and I want to be able to check if it has been installed and otherwise tell the user that he has to install the *nix app first.

I don't see any "splunk" way of checking for those dependencies and alerting the user accordingly

Anybody having a good suggestion ?

0 Karma

MuS
Legend

Hi flo_cognosec,

inside the sideview utils app there is a key techniques document on detecting sideview utils. Maybe you could use this a sample and adapt it to your needs.

cheers, MuS

0 Karma

flo_cognosec
Communicator

The sideview utils example seem to work only with splunk 5.x 😞

0 Karma

MuS
Legend

Ok, you misunderstood my answer. Inside Sideview App there is an example about how to detect if Sideview is installed or not. This means if you look at this example you will find a 'native way' on how to check for installed apps.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

It's free (as in beer) for internal use.

As a rudimentary check for the *nix app you could check if the os index is present.

For a more robust check you could query this REST endpoint:

| rest splunk_server=local /services/apps/local
0 Karma

flo_cognosec
Communicator

Unfortunately I cannot assume sideview utils being installed nor do I have a license for it so I am looking for a "native" way ^^

0 Karma
Get Updates on the Splunk Community!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

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

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...