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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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