<?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: Notification when indexes stop receiving  data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651153#M110602</link>
    <description>&lt;P&gt;TrackMe (&lt;A href="https://splunkbase.splunk.com/app/4621" target="_blank"&gt;https://splunkbase.splunk.com/app/4621&lt;/A&gt;) is the application that can help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you can built custom saved searches which looks over the latest _time of the events and alert if the time difference between current time and latest(_time) is more than threashold. Threashold can be maintained in the lookup and called in the search. For example, create a lookup called&amp;nbsp;acceptable_diff.csv with sample entries as below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="meetmshah_0-1689789323346.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26344i54143AEBFF1FBA09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="meetmshah_0-1689789323346.png" alt="meetmshah_0-1689789323346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and run the below search -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats latest(_time) as lastEventTime where index=* by index&lt;BR /&gt;| eval current_time=now()&lt;BR /&gt;| eval diff=current_time-lastEventTime&lt;BR /&gt;| lookup acceptable_diff.csv index as index OUTPUTNEW acceptable_diff as acceptable_diff&lt;BR /&gt;| eval diffWithAcceptableDiff=diff-acceptable_diff&lt;BR /&gt;| sort 0 - lastEventTime&lt;BR /&gt;| eval lastEventTime=strftime(lastEventTime,"%m/%d/%y %H:%M:%S")&lt;BR /&gt;| fields index lastEventTime diffWithAcceptableDiff acceptable_diff&lt;BR /&gt;| search diffWithAcceptableDiff&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to accept the answer if it helps!&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 17:56:30 GMT</pubDate>
    <dc:creator>meetmshah</dc:creator>
    <dc:date>2023-07-19T17:56:30Z</dc:date>
    <item>
      <title>Notification when indexes stop receiving  data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651149#M110601</link>
      <description>&lt;P&gt;Hi, we’ve had a problem recently where data has stopped flowing to an index, and it’s a few days before we find out and then resolve. Does anyone know of a splunk 9.x feature or an add-on that you can use to monitor / alert when data stops for a set amount of time?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 17:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651149#M110601</guid>
      <dc:creator>lavster</dc:creator>
      <dc:date>2023-07-19T17:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when indexes stop receiving  data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651153#M110602</link>
      <description>&lt;P&gt;TrackMe (&lt;A href="https://splunkbase.splunk.com/app/4621" target="_blank"&gt;https://splunkbase.splunk.com/app/4621&lt;/A&gt;) is the application that can help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you can built custom saved searches which looks over the latest _time of the events and alert if the time difference between current time and latest(_time) is more than threashold. Threashold can be maintained in the lookup and called in the search. For example, create a lookup called&amp;nbsp;acceptable_diff.csv with sample entries as below -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="meetmshah_0-1689789323346.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26344i54143AEBFF1FBA09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="meetmshah_0-1689789323346.png" alt="meetmshah_0-1689789323346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and run the below search -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| tstats latest(_time) as lastEventTime where index=* by index&lt;BR /&gt;| eval current_time=now()&lt;BR /&gt;| eval diff=current_time-lastEventTime&lt;BR /&gt;| lookup acceptable_diff.csv index as index OUTPUTNEW acceptable_diff as acceptable_diff&lt;BR /&gt;| eval diffWithAcceptableDiff=diff-acceptable_diff&lt;BR /&gt;| sort 0 - lastEventTime&lt;BR /&gt;| eval lastEventTime=strftime(lastEventTime,"%m/%d/%y %H:%M:%S")&lt;BR /&gt;| fields index lastEventTime diffWithAcceptableDiff acceptable_diff&lt;BR /&gt;| search diffWithAcceptableDiff&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Feel free to accept the answer if it helps!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 17:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651153#M110602</guid>
      <dc:creator>meetmshah</dc:creator>
      <dc:date>2023-07-19T17:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when indexes stop receiving  data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651213#M110607</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Try something like this from the metrics log.&lt;BR /&gt;index=_internal source=*metrics.log* host=idx* series=&lt;STRONG&gt;yourindexname&lt;/STRONG&gt; | stats latest(_time) as last_data_time by series | eval duration_seconds = now() - last_data_time | eval duration_human = strftime(duration_seconds, "%d days %H:%M:%S") | where duration_seconds &amp;gt; &amp;lt;&lt;STRONG&gt;your_duration_in_second&lt;/STRONG&gt;s&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 19:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651213#M110607</guid>
      <dc:creator>sainag_splunk</dc:creator>
      <dc:date>2023-07-19T19:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Notification when indexes stop receiving  data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651244#M110611</link>
      <description>&lt;P&gt;amazing thank you for this! i'll give this a go today&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 05:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Notification-when-indexes-stop-receiving-data/m-p/651244#M110611</guid>
      <dc:creator>lavster</dc:creator>
      <dc:date>2023-07-20T05:58:26Z</dc:date>
    </item>
  </channel>
</rss>

