Through Forwarder Management, you can see Clients and list how many apps are installed on that client. What I want to be able to do is list the apps that are installed on a client, so if a client has three apps, how can I see what three apps are installed?
Run this query from your deployment server instance
Updated - fixed typo
| rest /services/deployment/server/clients splunk_server=local| table hostname applications*.stateOnClient | untable hostname applications value | eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") | stats values(applications) as applications by hostname
Run this query from your deployment server instance
Updated - fixed typo
| rest /services/deployment/server/clients splunk_server=local| table hostname applications*.stateOnClient | untable hostname applications value | eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") | stats values(applications) as applications by hostname
small correction:
if the application contains -(hyphen) then the regex from your search is not matching. for example application
applications.Splunk_TA_bit9-carbonblack.stateOnClient
I would suggest using below regex that will capture first . (period) to next .(period)
applications\.(.*)\.stateOnClient
Your regex should read
"applications\.(\w+)\.stateOnClient","\1"
Missing an "s"
Good catch. Rectified now.
Is there a way to further get the versions for each app as well?
Thanks, that's exactly what I was looking for.
What does untable do? that's a new one...
In our case this show app installed on Heavy Forwarder not Universal Forwarder.
Is there a way to list installed apps on Universal Forwarder if in the middle there also Heavy Forwarder?
Thanks and regards
It converts table like
X Y1 Y2 Y3...
------------------
X1 v1 v2 v3
to
X Y value
v1 Y1 v1
v1 Y2 v2
v1 Y3 v3
How can I further filter it for a specific host or a specific app?
Thank you @SloshBurch. Splunk should provide this functionality in the Forwarder management GUI.