<?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: Splunk CLI command to list all Search Heads from Cluster Master in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594777#M12344</link>
    <description>&lt;P&gt;try ./splunk show shcluster-status --verbose&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 03:18:41 GMT</pubDate>
    <dc:creator>HadrianusHon</dc:creator>
    <dc:date>2022-04-22T03:18:41Z</dc:date>
    <item>
      <title>Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568887#M10129</link>
      <description>&lt;P&gt;I have setup an Indexer Cluster and joined Search Heads and Peer nodes to the Cluster Master.&lt;/P&gt;&lt;P&gt;I am able to see all the &lt;STRONG&gt;Peers&lt;/STRONG&gt;, &lt;STRONG&gt;Indexes&lt;/STRONG&gt;, &lt;STRONG&gt;Search Heads&lt;/STRONG&gt; from Cluster Master Web Interface (&lt;STRONG&gt;Settings -&amp;gt; Indexer Clustering&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;But I am looking for a CLI command that will list all the Search Heads that have joined this Cluster Master.&lt;/P&gt;&lt;P&gt;I have tried these but none of these show &lt;STRONG&gt;Search Head Nodes&lt;/STRONG&gt; information.&lt;BR /&gt;$ splunk list cluster-generation&lt;BR /&gt;$ splunk list cluster-config&lt;BR /&gt;$ splunk show cluster-status&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 07:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568887#M10129</guid>
      <dc:creator>amyboxy</dc:creator>
      <dc:date>2021-09-29T07:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568920#M10131</link>
      <description>&lt;P&gt;I don't have a CM with which to test this, but one of the REST API commands may give you the information you seek.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -u admin:password https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/cluster/manager/info&lt;/LI-CODE&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTcluster#cluster.2Fmanager.2Finfo" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTcluster#cluster.2Fmanager.2Finfo &lt;/A&gt;for details.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 12:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568920#M10131</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-29T12:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568927#M10132</link>
      <description>&lt;P&gt;Thanks for the reply but this still not giving me information on Search Heads Nodes... It is actually the &lt;STRONG&gt;XML&lt;/STRONG&gt; form of &lt;STRONG&gt;CLI&lt;/STRONG&gt; commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 13:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568927#M10132</guid>
      <dc:creator>amyboxy</dc:creator>
      <dc:date>2021-09-29T13:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568932#M10133</link>
      <description>&lt;P&gt;You can use following endpoint to get list of search head in the indexer cluster:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTcluster#cluster.2Fsearchhead.2Fgeneration" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTcluster#cluster.2Fsearchhead.2Fgeneration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can view other endpoint starting with "&lt;SPAN class="mw-headline"&gt;cluster/searchhead" as they give different details about the cluster's search head.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 13:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568932#M10133</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-09-29T13:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568936#M10134</link>
      <description>&lt;P&gt;Yes, I tried this REST API call from &lt;STRONG&gt;CM&lt;/STRONG&gt; and it would not return anything related to &lt;STRONG&gt;Search Head Nodes.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;I can get the Search Head nodes information from Search Head nodes(&lt;STRONG&gt;captain&lt;/STRONG&gt;) but still not able to get these SH nodes from &lt;STRONG&gt;Cluster Master&lt;/STRONG&gt; that owns Indexer Cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 13:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/568936#M10134</guid>
      <dc:creator>amyboxy</dc:creator>
      <dc:date>2021-09-29T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594777#M12344</link>
      <description>&lt;P&gt;try ./splunk show shcluster-status --verbose&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 03:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594777#M12344</guid>
      <dc:creator>HadrianusHon</dc:creator>
      <dc:date>2022-04-22T03:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594786#M12347</link>
      <description>&lt;P&gt;Well, the indexer cluster doesn't know much about the search head cluster. If you're executing shcluster management commanda from a shcluster member, it knows that it's a shcluster member and knows where to look for captain and other info from there.&lt;/P&gt;&lt;P&gt;If you're calling the commands from other nodes (including CM), the splunk configuration on that node is not aware of any shclustering because it's not a part of shcluster. So you have to use the -uri option to call the proper splunk instance (a shcluster member).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 05:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594786#M12347</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-22T05:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk CLI command to list all Search Heads from Cluster Master</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594872#M12355</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm not sure it you count this as a CLI, but you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk search '(host=&amp;lt;your idx nodes on cluster&amp;gt; ((index=_internal sourcetype=splunkd_remote_searches "Streamed search search starting"))) | table server| dedup server'&lt;/LI-CODE&gt;&lt;P&gt;Of course this needs that those SHs have made queries to this cluster.&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 14:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-CLI-command-to-list-all-Search-Heads-from-Cluster-Master/m-p/594872#M12355</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-04-22T14:05:07Z</dc:date>
    </item>
  </channel>
</rss>

