Splunk Enterprise

Which Splunk version each of our Splunk servers are on ?

mailtosnsolutio
Explorer

2 Question on Admin Side :

Question 1 : How many hosts are on each version of the Splunk Universal Forwarder ?

index="_internal" source="*metrics.log*" group=tcpin_connections |dedup hostname |stats count(hostname) as TotalCount by hostname , version,os  |table hostname ,version,os TotalCount

this query returning results but as confirmation need to be confirm it correct or not ??

Question 2 :  Which Splunk version each of our Splunk servers are on ?

Tried rest query but it not working as need is i need to list down all the splunk instance means (SHC,IC,Deployer, Deployment server n all)

they dont want to open Monitor console , they want to be have Custom dashboard for it

 

 

Labels (2)
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @mailtosnsolutio,

Question 1: You should remove hostname from group by statement to show total count and there is no need dedup before stats. Adding fwdType=uf will show only UF instances.

index="_internal" source="*metrics.log*" group=tcpin_connections fwdType=uf 
| stats dc(hostname) as TotalCount by version,os

Question 2:

You can use below rest query on your monitoring console instance and collect it into a summary index. After that you will be able to query summary index on any search instance;

| rest splunk_server_group=* /services/server/info | table host server_roles version

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @mailtosnsolutio,

Question 1: You should remove hostname from group by statement to show total count and there is no need dedup before stats. Adding fwdType=uf will show only UF instances.

index="_internal" source="*metrics.log*" group=tcpin_connections fwdType=uf 
| stats dc(hostname) as TotalCount by version,os

Question 2:

You can use below rest query on your monitoring console instance and collect it into a summary index. After that you will be able to query summary index on any search instance;

| rest splunk_server_group=* /services/server/info | table host server_roles version

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

rafiq_rehman
Explorer

Thanks for this answer, using it I was able to resolve my issue of finding out the version of all the Enterprise and UFs my team is responsible to upgrade:

index="_internal" source="*metrics.log*" group=tcpin_connections hostname IN (<your.servernames>)
| stats latest(fwdType) latest(version) latest(os) by hostname

 

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...