<?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 access a REST endpoint on the deployment server from a search head cluster? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-access-a-REST-endpoint-on-the-deployment-server-from-a/m-p/272376#M10361</link>
    <description>&lt;P&gt;The &lt;CODE&gt;| rest&lt;/CODE&gt; command only works for local server (current search head) and all search peers (Indexer/Peers that have been setup in distributed search). So to access deployment server Rest Api endpoints, add your deployment server as the search peer (Settings-&amp;gt;Distributed search-&amp;gt; Search peers)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 20:07:37 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-12-13T20:07:37Z</dc:date>
    <item>
      <title>How to access a REST endpoint on the deployment server from a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-access-a-REST-endpoint-on-the-deployment-server-from-a/m-p/272375#M10360</link>
      <description>&lt;P&gt;I'm trying to populate a lookup table with information about my deployment clients. The only place I've found to get that information is from the deployment server itself. The following rest command returns the data I want, but it only works when I run it on the deployment server (which is not a search head peer, so doesn't have access to the same lookup tables for &lt;CODE&gt;|outputlookup&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;If I specify "splunk_server=master" in the search, and run it on my normal search head cluster, I get no results back.&lt;/P&gt;

&lt;P&gt;Is there a way to make the search run on my normal search heads and query against the deployment server? Or, alternatively, run on the master and write against a lookup table (kvstore, if it matters) on my search head cluster?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local  /services/deployment/server/clients 
|eval serverClass="" 
|foreach *.serverclasses [eval serverClass=mvdedup(mvappend(serverClass,'&amp;lt; &amp;lt; FIELD &amp;gt; &amp;gt;'))]
|rename hostname as sourceHost ip as sourceIp 
|table sourceHost,sourceIp,serverClass
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 18:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-access-a-REST-endpoint-on-the-deployment-server-from-a/m-p/272375#M10360</guid>
      <dc:creator>azollmanflatiro</dc:creator>
      <dc:date>2016-12-13T18:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to access a REST endpoint on the deployment server from a search head cluster?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-access-a-REST-endpoint-on-the-deployment-server-from-a/m-p/272376#M10361</link>
      <description>&lt;P&gt;The &lt;CODE&gt;| rest&lt;/CODE&gt; command only works for local server (current search head) and all search peers (Indexer/Peers that have been setup in distributed search). So to access deployment server Rest Api endpoints, add your deployment server as the search peer (Settings-&amp;gt;Distributed search-&amp;gt; Search peers)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 20:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-access-a-REST-endpoint-on-the-deployment-server-from-a/m-p/272376#M10361</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-13T20:07:37Z</dc:date>
    </item>
  </channel>
</rss>

