Splunk Search

SPL to find all UF clients that picked up specific deployment app?

dkr3500
Path Finder

Hi,

I know there are other ways to get this through the deployment server, but I'm trying to find a SPL to get results of which of my Splunk UF clients currently has a specific deployment app.

I have been able to use this SPL to find all all deployment apps on all my Splunk UF clients:

 

| rest /services/deployment/server/clients splunk_server=splunkdeploy01* 
| table hostname applications*.stateOnClient 
| untable hostname applications value 
| eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") 
| stats values(applications) as applications by hostname

 

However, I'm looking for a SPL that searches across all Splunk UF clients for a specific deployment app: "all_splunk_uf"

Thanks!

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust
| rest /services/deployment/server/clients splunk_server=splunkdeploy01* 
| table hostname applications*.stateOnClient 
| untable hostname applications value 
| eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") 
| search applications="all_splunk_uf"
| stats values(applications) as applications by hostname

Filter on the application name.

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust
| rest /services/deployment/server/clients splunk_server=splunkdeploy01* 
| table hostname applications*.stateOnClient 
| untable hostname applications value 
| eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") 
| search applications="all_splunk_uf"
| stats values(applications) as applications by hostname

Filter on the application name.

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...