<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to di get a list of Search Heads in my Splunk Environment. in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381513#M20734</link>
    <description>&lt;P&gt;If you have access to the Monitoring Console, it would show you the Search Heads, Indexers and more....&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 19:49:34 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2018-06-12T19:49:34Z</dc:date>
    <item>
      <title>How to get a list of search heads in my Splunk environment?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381511#M20732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am relatively new to Splunk and I would like to know how to find out what are the number of "Search Heads" on my Splunk environment. I am sure there is a query that will display t his information. Any assistance on how to accomplish this would be a great help. I look forward to your response.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381511#M20732</guid>
      <dc:creator>GeoCouloute</dc:creator>
      <dc:date>2023-07-06T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381512#M20733</link>
      <description>&lt;P&gt;The easiest/quickest way would be to identify the instances running a Job Scheduler.  Depending on the configuration of the distributed environment, this could return Indexers or instances with other Splunk roles that run jobs.  This query also assumes that all of your logs are being forwarded to the Indexers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could then run this REST search on the instances to identify if the Splunk role is set as a Search Head:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/server/info | table serverName server_roles
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381512#M20733</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2018-06-12T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381513#M20734</link>
      <description>&lt;P&gt;If you have access to the Monitoring Console, it would show you the Search Heads, Indexers and more....&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381513#M20734</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-06-12T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381514#M20735</link>
      <description>&lt;P&gt;This is true, but only if the environment is configured correctly.  The rest call below will display the same role information.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 19:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381514#M20735</guid>
      <dc:creator>jowenssi</dc:creator>
      <dc:date>2018-06-12T19:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381515#M20736</link>
      <description>&lt;P&gt;Hi @GeoCouloute&lt;/P&gt;

&lt;P&gt;if you have newer version of splunk 7.1.1&lt;BR /&gt;
you can see a new option in settings --- search head clustering  -- from there you can see the list of all search heads in the cluster.&lt;/P&gt;

&lt;P&gt;from CLI you can also execute the query ./splunk show shcluster-status --- to see the list of all search heads incuding the captain in the cluster.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 20:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/381515#M20736</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-06-12T20:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/649346#M27263</link>
      <description>&lt;P&gt;I tried both commands and they return different servers.&lt;/P&gt;&lt;P&gt;The first command seems to return indexers (don't care) the second command lists one server and it's roles, which includes search_head (good).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would I care about schedulers? Are you saying the scheduler might also be the search head?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 16:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/649346#M27263</guid>
      <dc:creator>gerrysr6</dc:creator>
      <dc:date>2023-07-05T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to di get a list of Search Heads in my Splunk Environment.</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/649433#M27270</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;to getting REST queries to work, all those servers must be defined as search peer to this instance. Usually you define only indexers as a peer for SH so that's reason you are not founding other SHs with it except on MC where you already have added those to be a peer to get REST API and MC working correctly.&lt;/P&gt;&lt;P&gt;Scheduler is running on full splunk instances where are some search activities. This means at least SH and IDX and CM. Maybe also some HF could match to this and LM, DS and Deployer (cannot check it now). Easy way to drop IDXs away from that list (if you have only one IDX cluster/indexer where you send your internal logs) is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal sourcetype=scheduler NOT 
    [| tstats count where index=_internal sourcetype=scheduler by splunk_server 
    | fields splunk_server 
    | rename splunk_server as host
    | format] by host
| table host
| rename host as "Instances which can use as SH"&lt;/LI-CODE&gt;&lt;P&gt;If you have serveral IDXc + indexers connected to this SH then you need add some other indexes here to get full list of splunk_servers where events are stored.&lt;/P&gt;&lt;P&gt;r. Ism&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 09:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-a-list-of-search-heads-in-my-Splunk-environment/m-p/649433#M27270</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-07-06T09:59:13Z</dc:date>
    </item>
  </channel>
</rss>

