Splunk Cloud Platform

How to get Splunk Version for all environment components

SplunkExplorer
Contributor

Hi Splunkers, I must recover Splunk version for all component in a particular environment.
I have not access to all GUI and/or .conf files on all machine, so the idea is to try to recover those info with a Splunk search.

Here: How-to-identify-a-list-of-forwarders-sending-data I got a very useful search that I used and return me a lot of info about Forwarders, all ones: UF, HF and so on.
Due I'm not on a cloud env but an on prem one, I have also to recover Splunk version used on Indexers and Search Heads. So, my question is: how should I change search got on above link to gain version from IDXs and SHs?

Labels (1)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

There some ways to get that information. Which one is best depends on your environment.

I suppose that you have MC configured and in use? If not please take it into use and utilise it with this.

With MC you can get this information directly from 

Settings -> MC -> Instances

Other option is use rest query for getting this from all instances, but this needs that those are defined as search peer for node where you are running this. In MC you have done this already

| rest splunk_server=* /services/server/info f=host f=host_fqdn f=version

3rd option is try to get this information from _internal log, but it needs that you have extended it's retention time enough for finding last start messages. By default it's retention is too short for this.

r. Ismo 

View solution in original post

PickleRick
SplunkTrust
SplunkTrust

Apart from MC or direct rest calls against your "main" components if you have forwarder monitoring enabled in your MC, you'll see a list of your forwarders which connected to your environment (the inventory is dynamically updated based on the version reported by UF to _internal).

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

There some ways to get that information. Which one is best depends on your environment.

I suppose that you have MC configured and in use? If not please take it into use and utilise it with this.

With MC you can get this information directly from 

Settings -> MC -> Instances

Other option is use rest query for getting this from all instances, but this needs that those are defined as search peer for node where you are running this. In MC you have done this already

| rest splunk_server=* /services/server/info f=host f=host_fqdn f=version

3rd option is try to get this information from _internal log, but it needs that you have extended it's retention time enough for finding last start messages. By default it's retention is too short for this.

r. Ismo 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...