<?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: Query to check the indexer is down, up or in unknown state in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741649#M10783</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help but I created a query which shows me the required results&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| rest /services/server/introspection/indexer&amp;nbsp;&lt;BR /&gt;| where match(splunk_server, "indexer")&amp;nbsp;&lt;BR /&gt;| eval status = if(status == "normal", "up", "down")&lt;BR /&gt;| table splunk_server, status&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 06:52:50 GMT</pubDate>
    <dc:creator>Praz_123</dc:creator>
    <dc:date>2025-03-13T06:52:50Z</dc:date>
    <item>
      <title>Query to check the indexer is down, up or in unknown state</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741492#M10780</link>
      <description>&lt;P&gt;Is there is any Query&amp;nbsp; to check whether the indexers status&amp;nbsp; is&amp;nbsp; down, up or in unknown state .&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I can check in monitoring console but need a query to see for all indexer.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 06:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741492#M10780</guid>
      <dc:creator>Praz_123</dc:creator>
      <dc:date>2025-03-12T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query to check the indexer is down, up or in unknown state</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741499#M10781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258639"&gt;@Praz_123&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could try running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/server/info | table serverName, server_roles, status&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This query uses the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;rest&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command to access the Splunk REST API endpoint that provides information about the servers in your Splunk deployment. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;server_roles&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field will help you identify which servers are indexers, and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;status&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;field will show their current status.&lt;/P&gt;&lt;P&gt;If you want to specifically check the health of your indexers, you can use the following query:&lt;/P&gt;&lt;PRE&gt;| rest /services/server/status/health/overview
| search title="Indexer"
| table title, health, messag&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 07:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741499#M10781</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-12T07:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query to check the indexer is down, up or in unknown state</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741513#M10782</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258639"&gt;@Praz_123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;you can use the correct searches of&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;or a simple:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal host IN (indexer1,indexer2)
| stats count BY host
| append [ | makeresults | eval host=indexer1, count=0 | fields host count ]
| append [ | makeresults | eval host=indexer2, count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;eventually you can replace the append commands with a lookup containing the list of servers to monitor&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal host IN (indexer1,indexer2)
| stats count BY host
| append [ | inputlookup perimeter.csv | eval count=0 | fields host count ]
| stats sum(count) AS total BY host
| where total=0&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 08:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741513#M10782</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-03-12T08:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query to check the indexer is down, up or in unknown state</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741649#M10783</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help but I created a query which shows me the required results&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| rest /services/server/introspection/indexer&amp;nbsp;&lt;BR /&gt;| where match(splunk_server, "indexer")&amp;nbsp;&lt;BR /&gt;| eval status = if(status == "normal", "up", "down")&lt;BR /&gt;| table splunk_server, status&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 06:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741649#M10783</guid>
      <dc:creator>Praz_123</dc:creator>
      <dc:date>2025-03-13T06:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query to check the indexer is down, up or in unknown state</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741663#M10784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258639"&gt;@Praz_123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;let us know if we can help you more, or, please, accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 07:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Query-to-check-the-indexer-is-down-up-or-in-unknown-state/m-p/741663#M10784</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-03-13T07:57:34Z</dc:date>
    </item>
  </channel>
</rss>

