<?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: List all Splunk Servers with a REST search command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506911#M141793</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said you couldn’t get that information with REST. I propose to you to look this guide&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/InheritedDeployment/Introduction" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/InheritedDeployment/Introduction&lt;/A&gt;&amp;nbsp;to get more information about your environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 17:08:32 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-07-01T17:08:32Z</dc:date>
    <item>
      <title>List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506900#M141791</link>
      <description>&lt;P&gt;I know this has been probably asked before, but I didn't found an answer yet.&lt;/P&gt;&lt;P&gt;Is there any way to know which are all the Splunk Servers (Search Heads, Indexers, Deployment Server, Master Node etc..) in a distributed environment with a REST call made via SPL? It would be grateful if the query does not have to be run from the Server instance where the Monitoring Console is enabled.&lt;/P&gt;&lt;P&gt;Basically I would need to have the same result you can get clicking on "Instances" in the Monitoring Console.&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;BR /&gt;Edoardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 16:31:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506900#M141791</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-01T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506904#M141792</link>
      <description>The Monitoring Console is the one point that is aware of all Splunk instances. If you can't or won't use that then you may be out of luck.</description>
      <pubDate>Wed, 01 Jul 2020 16:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506904#M141792</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-01T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506911#M141793</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said you couldn’t get that information with REST. I propose to you to look this guide&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/InheritedDeployment/Introduction" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/InheritedDeployment/Introduction&lt;/A&gt;&amp;nbsp;to get more information about your environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 17:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506911#M141793</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-01T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506990#M141804</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;Do you think that from the Search Head, with the SPL rest command, is it possible to perform a rest call to the Monitoring console to get the values showed on&amp;nbsp;&lt;SPAN&gt;"Instances" view?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 08:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506990#M141804</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-02T08:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506992#M141806</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the very useful documentation, I'll keep in mind. Unfortunately it does not solve my problem&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 08:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/506992#M141806</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-02T08:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507002#M141808</link>
      <description>This should explain what you can query with SPL rest query&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/td-p/162851" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/Can-we-use-quot-rest-quot-to-call-Splunk-instances-other-than/td-p/162851&lt;/A&gt;</description>
      <pubDate>Thu, 02 Jul 2020 08:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507002#M141808</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-02T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507011#M141809</link>
      <description>If all nodes in your environment are sending their internal logs to indexers then you can figure out those information (at least most, maybe not all?) from couple of queries from _internal and _introspection. Probably it's good to create some lookups with scheduled searches to put correct group information to explain node's roles.&lt;BR /&gt;&lt;BR /&gt;Basically MC is stored all those instance roles, groups etc. to lookups when you apply configuration it's configuration page.&lt;BR /&gt;&lt;BR /&gt;Some queries:&lt;BR /&gt;# SHC clusters and members&lt;BR /&gt;index=_internal sourcetype=splunkd component=CMPeer&lt;BR /&gt;| stats values(host) AS CM by peer_name&lt;BR /&gt;&lt;BR /&gt;# Indexer clusters with peers&lt;BR /&gt;index=_internal sourcetype=splunkd component=SHCMaster&lt;BR /&gt;| stats values(host) as SHC_Captain by peer&lt;BR /&gt;&lt;BR /&gt;# All nodes&lt;BR /&gt;index=_internal sourcetype=splunkd component=ExecProcessor command=Python&lt;BR /&gt;| stats count by host&lt;BR /&gt;&lt;BR /&gt;Then OS, mem, cpu etc. info can be found from _introspection.&lt;BR /&gt;Maybe there is already some apps for this on splunkbase?&lt;BR /&gt;&lt;BR /&gt;r. Ismo</description>
      <pubDate>Thu, 02 Jul 2020 09:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507011#M141809</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-02T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507013#M141810</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, I know how to do a SPL REST call, the point is that I don't know which is (or which are) the REST calls to be done to list all the servers within a Splunk deployment&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:46:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507013#M141810</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-02T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507019#M141811</link>
      <description>&lt;P&gt;In the meanwhile I found this, if executed from the Monitoring Console it reports all the Splunk Servers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/server/status count=0 splunk_server=* | dedup splunk_server | table splunk_server&lt;/LI-CODE&gt;&lt;P&gt;Now need to check if the same REST call can be done from the Search Head to the Monitoring Console (that in my deployment is in a different server).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507019#M141811</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-02T09:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507074#M141818</link>
      <description>REST calls are processed by the local search head and by all search peers. Since the MC is not a search peer, it will not participate in the query.</description>
      <pubDate>Thu, 02 Jul 2020 12:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507074#M141818</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-02T12:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507142#M141830</link>
      <description>&lt;P&gt;This is what the MC uses:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server_group=* splunk_server_group="*" /services/server/status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;you can remove the first two parms if not running on the MC and it will return everything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 19:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507142#M141830</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2020-07-02T19:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: List all Splunk Servers with a REST search command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507144#M141831</link>
      <description>In MC you have defined all other nodes as peers to get their information to MC. This is not a situation (or should not) on any other SHs. As it’s said earlier REST get information only on local node (splunk_server=local) or all search peers which it use to query normally. For that reason this is working on MC, but not on other SHs&lt;BR /&gt;&lt;BR /&gt;R. Ismo</description>
      <pubDate>Thu, 02 Jul 2020 19:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/List-all-Splunk-Servers-with-a-REST-search-command/m-p/507144#M141831</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-02T19:54:58Z</dc:date>
    </item>
  </channel>
</rss>

