<?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: | rest /services/cluster/master/peers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461740#M79702</link>
    <description>&lt;P&gt;Thank you very much for the response. It does not work when I run the command on the CM - I posted the error above. But it does work when I add &lt;STRONG&gt;splunk_server=&lt;/STRONG&gt;. &lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 12:40:12 GMT</pubDate>
    <dc:creator>_smp_</dc:creator>
    <dc:date>2019-10-17T12:40:12Z</dc:date>
    <item>
      <title>| rest /services/cluster/master/peers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461738#M79700</link>
      <description>&lt;P&gt;I have a SH cluster and an Index cluster all running 7.1.7. I'm trying to access the &lt;STRONG&gt;cluster/master/peers&lt;/STRONG&gt; endpoint by executing this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/cluster/master/peers
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I run this on a SH, I get this error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;REST Processor: Failed to fetch REST endpoint uri=&lt;A href="https://127.0.0.1:8089/services/cluster/master/peers?count=0"&gt;https://127.0.0.1:8089/services/cluster/master/peers?count=0&lt;/A&gt; from server &lt;A href="https://127.0.0.1:8089"&gt;https://127.0.0.1:8089&lt;/A&gt;. Check that the URI path provided exists in the REST API.&lt;BR /&gt;
When I run it on the CM, I get this error:&lt;BR /&gt;
Unexpected status for to fetch REST endpoint uri=&lt;A href="https://127.0.0.1:8089/services/cluster/master/peers?count=0"&gt;https://127.0.0.1:8089/services/cluster/master/peers?count=0&lt;/A&gt; from server=&lt;A href="https://127.0.0.1:8089"&gt;https://127.0.0.1:8089&lt;/A&gt; - Service Unavailable&lt;BR /&gt;
Either way, this message gets logged by each of the indexer peers no matter where I run the rest command:&lt;BR /&gt;
10-16-2019 09:28:39.947 -0500 INFO  ClusterMasterPeerHandler - master is not enabled on this node&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Anyone know why I can't access this rest endpoint?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 14:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461738#M79700</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2019-10-16T14:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: | rest /services/cluster/master/peers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461739#M79701</link>
      <description>&lt;P&gt;The rest endpoint you're hitting there is for indexer clustering and will only work on an indexer cluster master. If you are trying to get the status of all distributed search peers then use &lt;STRONG&gt;|rest /services/search/distributed/peers/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Also if you want to avoid errors from downstream search peers, then you should specify the &lt;STRONG&gt;splunk_server=&lt;/STRONG&gt;&lt;BR /&gt;
For the case of getting indexer cluster peers you would do like&lt;BR /&gt;
&lt;STRONG&gt;|rest /services/cluster/master/peers splunk_server=ClusterMasterNameGoesHere&lt;/STRONG&gt; and then it won't try to distribute the rest command to all search peers, and avoid them throwing errors.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 00:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461739#M79701</guid>
      <dc:creator>anthonymelita</dc:creator>
      <dc:date>2019-10-17T00:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: | rest /services/cluster/master/peers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461740#M79702</link>
      <description>&lt;P&gt;Thank you very much for the response. It does not work when I run the command on the CM - I posted the error above. But it does work when I add &lt;STRONG&gt;splunk_server=&lt;/STRONG&gt;. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 12:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rest-services-cluster-master-peers/m-p/461740#M79702</guid>
      <dc:creator>_smp_</dc:creator>
      <dc:date>2019-10-17T12:40:12Z</dc:date>
    </item>
  </channel>
</rss>

