All Apps and Add-ons

Count of Apps

sheltomt
Path Finder

Upper management would like a count of all apps installed on our main Search Head. They want a "how many right now" to compare against in the future. My idea is to just make a then/now type report, haven't decided on visualization.

I'm not finding anything on Google that would allow me to count apps on demand.

Has anyone done this?

Tags (1)
0 Karma
1 Solution

kmorris_splunk
Splunk Employee
Splunk Employee

You can do this via rest. Try this first to get the list of apps:

| rest /services/apps/local | table label version

If you want a count of all the apps:

| rest /services/apps/local | stats count as numberofapps

If you just want enabled apps, you could use:

| rest /services/apps/local | search disabled=0 | stats count as numberofapps

View solution in original post

0 Karma

lguinn2
Legend

Well - one of the problems is this: do you want to count disabled apps? Do you want to count the built-in apps? Do add-ons count?

But if you just want to know how many apps are on your main search head, you can run this search:

| rest /services/apps/local | fields label title visible disabled configured core | stats count by disabled

This example breaks out the disabled vs. enabled apps

0 Karma

kmorris_splunk
Splunk Employee
Splunk Employee

You can do this via rest. Try this first to get the list of apps:

| rest /services/apps/local | table label version

If you want a count of all the apps:

| rest /services/apps/local | stats count as numberofapps

If you just want enabled apps, you could use:

| rest /services/apps/local | search disabled=0 | stats count as numberofapps
0 Karma

sheltomt
Path Finder

Thank you! Exactly what I was looking for.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...