All Apps and Add-ons

Adding the notion of app dependencies to app.conf

Damien_Dallimor
Ultra Champion

Just an idea...you might create and publish a Splunk app that depends on other apps/scripted inputs etc...

For example, Splunk for JMX covers such a broad range of applications because it connects to the JVM.Ergo, any application that runs on a JVM (JEE app servers, servlet containers,IOC frameworks,hadoop etc....) could have a Splunk app created by starting with Splunk for JMX.

I have been able to rapidly create simple apps for JBoss, Tomcat, Cassandra and Websphere ExtremeScale Grid using this approach.

Happy Splunking !!

sideview
SplunkTrust
SplunkTrust

It definitely would be awesome if Splunk had a real mechanism to do this sort of thing, but I've taken a homegrown approach which has done a decent job for me so far fwiw.

Sideview apps all depend on the Sideview Utils app being present, and they actually do a check to see whether

1) Sideview Utils is on the system (ugly: application.js goes and looks for it in the App nav menu, which means the required app cannot have is_visible=False in app.conf),

2) and then the apps can check whether the Utils version installed matches a required minimum version (Sideview Utils keeps it's own version string which you can get at Sideview.utils.getCurrentVersion(), and apps can check against a minimum required version with Sideview.utils.checkRequiredVersion("1.1.5"), which returns boolean if the installed version matches that minimum).

And if either of these conditions fail, the JS displays a relevant error message to the user in the UI.

The same idea could be applied to other app dependencies like Splunk for JMX, if you can correspond with the Splunk for JMX people and work out something similar.

If you want to know more about how Utils does it, there is a bit of documentation, setup instructions, and sample code in Sideview Utils itself. Download and install the app and then go to "key techniques > Other > how to detect Sideview Utils".

Damien_Dallimor
Ultra Champion

Thanks Nick.
Actually, I'm the Splunk for JMX author, so I might follow your approach until something more formal comes along.

0 Karma

dwaddle
SplunkTrust
SplunkTrust

A good idea indeed. I would recommend submitting an enhancement request for this. http://splunk-base.splunk.com/answers/4844/how-can-i-submit-an-enhancement-request

Damien_Dallimor
Ultra Champion

Thanks..I'll follow that suggestion

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...