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!

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

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...