All Apps and Add-ons

How to check version of all apps and add-ons installed on Splunk via CLI ?

kishor_pinjark2
Path Finder

I want to see details like below:

Folder Name App or Add-on Name Version Status
SA-ldapsearch Splunk Supporting Add-on for Active Directory 2.1.2 Enabled

Labels (1)
Tags (1)
0 Karma
1 Solution

493669
Super Champion

Hi @kishor_pinjarkar,
Try this rest command as suggested by @MuS-

| rest /services/apps/local | search disabled=0 core=0|dedup label  | table label version

View solution in original post

raventura
Observer

is there a command where we can get app versions across the Splunk cloud environment? get app versions from SH, IDX, DS, HF/UF, etc. 

Many thanks!

0 Karma

493669
Super Champion

Hi @kishor_pinjarkar,
Try this rest command as suggested by @MuS-

| rest /services/apps/local | search disabled=0 core=0|dedup label  | table label version

kishor_pinjark2
Path Finder

Thanks Team.

However, I am getting below error:


:prodlaa@XXXXXX:/opt/splunk/bin
$ | rest /services/apps/local | search disabled=0 core=0 | dedup lable | table lable version
-ksh: syntax error: `|' unexpected


0 Karma

jaracan
Communicator

You should run the SPL query command on the Splunk searchead search, not on the CLI terminal.

0 Karma

493669
Super Champion

have a look at comment https://answers.splunk.com/answers/259842/how-to-search-a-list-of-all-enabled-apps-in-splunk.html
$SPLUNK_HOME/bin:

 ./splunk search "| rest /services/apps/local | search disabled=0 | table label version" -uri https://MyHeavyWeightForwarder:8089

kishor_pinjark2
Path Finder

I am aware of the command splunk display app...

However, not able to find version of all, at once via CLI.

0 Karma

pacifiquen
Explorer

Hello,

To check version of all apps and add-ons installed on Splunk via CLI?
./splunk list app && ./splunk list add-ons | sort

AND try this one in GUI in Splunk search query and run this query:
| rest /services/apps/local splunk_server=local
| table title version

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 ...