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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...