<?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 get notified for indexer automatic detention in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484846#M193469</link>
    <description>&lt;P&gt;The cluster master dashboard shows status of indexers (via REST call). You can setup an alert to which can query the indexer status at an interval and notify you when the status changes to AutomaticDetention. See this for rest api endpoint details.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fpeers"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fpeers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In search query you could do something like this (run on cluster master node)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/cluster/master/peers | table title label status | where status="AutomaticDetention"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Mar 2020 16:25:07 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2020-03-02T16:25:07Z</dc:date>
    <item>
      <title>How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484845#M193468</link>
      <description>&lt;P&gt;Im not seeing any way Splunk will notify regarding automatic detention, which usually happens because of disk space issues&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 13:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484845#M193468</guid>
      <dc:creator>jpillai</dc:creator>
      <dc:date>2020-03-02T13:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484846#M193469</link>
      <description>&lt;P&gt;The cluster master dashboard shows status of indexers (via REST call). You can setup an alert to which can query the indexer status at an interval and notify you when the status changes to AutomaticDetention. See this for rest api endpoint details.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fpeers"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/RESTREF/RESTcluster#cluster.2Fmaster.2Fpeers&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In search query you could do something like this (run on cluster master node)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest splunk_server=local /services/cluster/master/peers | table title label status | where status="AutomaticDetention"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:25:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484846#M193469</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-03-02T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484847#M193470</link>
      <description>&lt;P&gt;If looking for Splunk disk space issue, you can use your monitoring console for space details &lt;/P&gt;

&lt;P&gt;Splunk &amp;gt;&amp;gt; Setting &amp;gt;&amp;gt; Monitoring Console &amp;gt;&amp;gt; Indexing &amp;gt;&amp;gt; Volume Detail Instance&lt;/P&gt;

&lt;P&gt;or try below mentioned SPL&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /services/server/status/partitions-space | eval usage = capacity
- free | eval pct_usage = round(usage / capacity * 100, 2) | stats
first(fs_type) as fs_type first(usage) as usage first(capacity) as
capacity first(pct_usage) as pct_usage by splunk_server, mount_point
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;If you want to monitor Space issue in non-Splunk instances, try onboarding perfmon logs, onboarding details are on below mentioned Splunk answer &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/454999/how-to-develop-a-search-to-find-free-disk-space-us.html"&gt;https://answers.splunk.com/answers/454999/how-to-develop-a-search-to-find-free-disk-space-us.html&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon sourcetype="Perfmon:Free Disk Space" counter="Free Megabytes" (instance!="HarddiskVolume*") (instance!=_Total) |dedup host
 | eval FreeSpace=(Value/1024)
 | eval GB=tostring(FreeSpace,"commas")
 | table host instance GB 
 | sort + host instance
 | rename instance as "Drive Letter" GB as "GigaBytes Free"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 16:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484847#M193470</guid>
      <dc:creator>sumanssah</dc:creator>
      <dc:date>2020-03-02T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484848#M193471</link>
      <description>&lt;P&gt;Thank you for the quick responses, I will certainly check on this and let you know. But it is a shame there is no better/obvious ways to do this in Splunk, given this is an important event.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 17:24:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484848#M193471</guid>
      <dc:creator>jpillai</dc:creator>
      <dc:date>2020-03-02T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484849#M193472</link>
      <description>&lt;P&gt;@somesoni2 This is exactly what I was looking for, once I found there is no user friendly way of doing it. I have setup an alert with this on the master. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 04:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/484849#M193472</guid>
      <dc:creator>jpillai</dc:creator>
      <dc:date>2020-03-03T04:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get notified for indexer automatic detention</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/555235#M193473</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I think that the easiest way to get this is an activate MC's Alert: "DMC Alert - Abnormal State of Indexer Processor". Then it informs you e.g. with email that there is issue with indexer.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-notified-for-indexer-automatic-detention/m-p/555235#M193473</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-06-10T07:10:49Z</dc:date>
    </item>
  </channel>
</rss>

