<?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: Can we use &amp;quot;| rest&amp;quot; to call Splunk instances other than local? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162852#M33025</link>
    <description>&lt;P&gt;I believe it works only for the Current Splunk instance (e.g. Search head where query is running) and it's search peers (e.g. indexers). Run this and see what all splunk_server values it can support.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/indexes count=0 splunk_server=*| stats count by splunk_server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only the server name listed here will work as argument&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2014 15:02:40 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-07-30T15:02:40Z</dc:date>
    <item>
      <title>Can we use "| rest" to call Splunk instances other than local?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162851#M33024</link>
      <description>&lt;P&gt;So far, I'm only able to run these against local Splunk.&lt;BR /&gt;
It has nothing returned when I replaced "local" with other hostname.&lt;BR /&gt;
Is it possible to run these against remote Splunk and forwarder?&lt;BR /&gt;
Any requirement to make this work? I've already set allowRemoteLogin = always&lt;/P&gt;

&lt;P&gt;| rest /services/data/indexes count=0 splunk_server=local&lt;BR /&gt;
| rest /services/admin/inputstatus/TailingProcessor:FileStatus timeout=300 splunk_server=local&lt;/P&gt;

&lt;P&gt;Also, what if management port is something else than 8089, e.g. 9001?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162851#M33024</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2020-09-28T17:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use "| rest" to call Splunk instances other than local?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162852#M33025</link>
      <description>&lt;P&gt;I believe it works only for the Current Splunk instance (e.g. Search head where query is running) and it's search peers (e.g. indexers). Run this and see what all splunk_server values it can support.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/indexes count=0 splunk_server=*| stats count by splunk_server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only the server name listed here will work as argument&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162852#M33025</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-30T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use "| rest" to call Splunk instances other than local?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162853#M33026</link>
      <description>&lt;P&gt;Yes you can. But you need to make sure the other instance that you are trying to run it against is a Search Peer to the instance you are executing from. That means you cant run it for a remote Forwarder.&lt;/P&gt;

&lt;P&gt;you can run it against any hostname you get from below search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/indexes count=0 splunk_server=*
| stats count by splunk_server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rest /services/data/indexes count=0 splunk_server=*| stats count by splunk_server
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/82i900DF34983285EAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=splunk05 /servicesNS/-/-/configs/conf-props search="eai:acl.app=search"
| search title=*
| rename eai:acl.app as app, eai:acl.perms.read as read, eai:acl.sharing as sharing
| fields - updated published id eai*
| fields title author splunk_server app read sharing *
| eval title="[".title."]"
| foreach * [eval title=if("&amp;lt;&amp;gt;"="author" OR "&amp;lt;&amp;gt;"="splunk_server" OR "&amp;lt;&amp;gt;"="app" OR "&amp;lt;&amp;gt;"="read"  OR "&amp;lt;&amp;gt;"="sharing" OR "&amp;lt;&amp;gt;"="title" OR '&amp;lt;&amp;gt;'="",title,mvappend(title,"&amp;lt;&amp;gt;"."="."\"".'&amp;lt;&amp;gt;'."\""))]
| fields title author splunk_server app read sharing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/83iEDE8417C8E406D17/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 03:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/m-p/162853#M33026</guid>
      <dc:creator>meleperuma</dc:creator>
      <dc:date>2019-05-31T03:42:33Z</dc:date>
    </item>
  </channel>
</rss>

