<?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 Help with query to notify when date is older than x amount of days in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584627#M13458</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table called&amp;nbsp;active_services.csv.&lt;BR /&gt;One of the fields is called&amp;nbsp;&lt;A href="https://gdcsplunk/en-AU/app/tpa/search?q=%7C%20from%20inputlookup%3A%22telstra_nbn_active_services.csv%22&amp;amp;sid=1644549613.4958167_2191905C-3D94-4E49-8B9F-1F31FD275CDD&amp;amp;earliest=-24h%40h&amp;amp;latest=now&amp;amp;display.statistics.sortColumn=Report_Date&amp;amp;display.statistics.sortDirection=desc&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;display.general.type=statistics#" target="_blank" rel="noopener"&gt;Report_Date&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Date value is in the following format&amp;nbsp;&lt;SPAN&gt;20220124.&lt;BR /&gt;The CSV file is automatically updated weekly but sometimes fails and requires manual intervention.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I need help with a query so I can setup an alert to notify me when the report date value is older than X amount of days.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your help in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 16:55:49 GMT</pubDate>
    <dc:creator>goken</dc:creator>
    <dc:date>2022-02-11T16:55:49Z</dc:date>
    <item>
      <title>Help with query to notify when date is older than x amount of days</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584627#M13458</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table called&amp;nbsp;active_services.csv.&lt;BR /&gt;One of the fields is called&amp;nbsp;&lt;A href="https://gdcsplunk/en-AU/app/tpa/search?q=%7C%20from%20inputlookup%3A%22telstra_nbn_active_services.csv%22&amp;amp;sid=1644549613.4958167_2191905C-3D94-4E49-8B9F-1F31FD275CDD&amp;amp;earliest=-24h%40h&amp;amp;latest=now&amp;amp;display.statistics.sortColumn=Report_Date&amp;amp;display.statistics.sortDirection=desc&amp;amp;display.page.search.mode=smart&amp;amp;dispatch.sample_ratio=1&amp;amp;display.general.type=statistics#" target="_blank" rel="noopener"&gt;Report_Date&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Date value is in the following format&amp;nbsp;&lt;SPAN&gt;20220124.&lt;BR /&gt;The CSV file is automatically updated weekly but sometimes fails and requires manual intervention.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I need help with a query so I can setup an alert to notify me when the report date value is older than X amount of days.&lt;BR /&gt;&lt;BR /&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your help in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:55:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584627#M13458</guid>
      <dc:creator>goken</dc:creator>
      <dc:date>2022-02-11T16:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query to notify when date is older than x amount of days</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584666#M13459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/174547"&gt;@goken&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I suppose that you are ingesting the&amp;nbsp;&lt;SPAN&gt;active_services.csv in an index.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So you could run a search like this (where X=30 days):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index
| eval Diff=strptime(Report_Date,"%Y%m%d")-86400*30
| where Diff&amp;gt;0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;In this way, if you have results there are events outdated and you can create an alert with this search.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584666#M13459</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-11T07:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query to notify when date is older than x amount of days</title>
      <link>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584667#M13460</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval days=floor((relative_time(now(),"@d")-strptime(report_date,"%Y%m%d"))/(60*60*24))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Help-with-query-to-notify-when-date-is-older-than-x-amount-of/m-p/584667#M13460</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-11T07:51:42Z</dc:date>
    </item>
  </channel>
</rss>

