<?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 How do I locate the captain on a search head cluster? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187958#M7013</link>
    <description>&lt;P&gt;I can't find the documentation about locating the captain, but I need to do a rolling restart.  The docs mention it has to be initiated from the captain.  Please advise.&lt;/P&gt;

&lt;P&gt;Thanks, Jennifer&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 01:23:44 GMT</pubDate>
    <dc:creator>jldebell</dc:creator>
    <dc:date>2015-05-14T01:23:44Z</dc:date>
    <item>
      <title>How do I locate the captain on a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187958#M7013</link>
      <description>&lt;P&gt;I can't find the documentation about locating the captain, but I need to do a rolling restart.  The docs mention it has to be initiated from the captain.  Please advise.&lt;/P&gt;

&lt;P&gt;Thanks, Jennifer&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 01:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187958#M7013</guid>
      <dc:creator>jldebell</dc:creator>
      <dc:date>2015-05-14T01:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I locate the captain on a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187959#M7014</link>
      <description>&lt;P&gt;The information is in docs.&lt;/P&gt;

&lt;P&gt;splunk show shcluster-status -auth username:password&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/DistSearch/SHCdeploymentoverview#4._Initialize_cluster_members"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/DistSearch/SHCdeploymentoverview#4._Initialize_cluster_members&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 01:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187959#M7014</guid>
      <dc:creator>jldebell</dc:creator>
      <dc:date>2015-05-14T01:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I locate the captain on a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187960#M7015</link>
      <description>&lt;P&gt;If you're trying to get the captain for programatic purposes, as I am, you can either use the API, like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -s -XGET -u "admin:${SPLUNK_PASSWORD}" \
    "https://${SPLUNK_ENDPOINT}/services/shcluster/status?output_mode=json" | \
  jq -r '.entry[0].content.captain.label'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or if you can't install &lt;CODE&gt;jq&lt;/CODE&gt;, you can do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk show shcluster-status -auth 'admin:${SPLUNK_PASSWORD}' | \
  grep label | head -n1 | cut -d ":" -f2 | xargs
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 02:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/187960#M7015</guid>
      <dc:creator>jmervine</dc:creator>
      <dc:date>2019-02-01T02:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I locate the captain on a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/530847#M18267</link>
      <description>&lt;P&gt;As not all instances allow for CLI access, such as Splunk Cloud, you may also query the captain from the Search GUI.&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;| rest /services/shcluster/status splunk_server=local
| fields captain.label&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 25 Nov 2020 15:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-do-I-locate-the-captain-on-a-search-head-cluster/m-p/530847#M18267</guid>
      <dc:creator>markbarber21</dc:creator>
      <dc:date>2020-11-25T15:13:43Z</dc:date>
    </item>
  </channel>
</rss>

