<?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 Setting duration in search and save as an alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535399#M10101</link>
    <description>&lt;P&gt;We are trying to set an alert for a sub_A to trigger if no data is sent&amp;nbsp; in 1 hour duration.&amp;nbsp; The previous splunk expert wrote the search below, and i was under the impression to change the "+24h@h" to "1h@h" and "86400",&amp;nbsp; to 3600 would change the parameter of the alert.&lt;/P&gt;&lt;P&gt;| where now()&amp;gt;relative_time(LastFileXfer, "+24h@h")&lt;BR /&gt;| eval DaysOld=round((now() - round(LastFileXfer, 0))/86400, 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this need to be changed when saving the alert in menu section of the alert?&lt;/P&gt;&lt;P&gt;-----Thank you-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------Search------&lt;/P&gt;&lt;P&gt;index=dart_index source=OPS_NIPR_DART_DMZ_IncomingOutgoing status_message="OK" earliest=-48h@h subscription_name IN ("Sub_A")&lt;BR /&gt;| eval DeliveryComplete=strptime(delivery_complete, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats values(src_host) as Source, values(dest_host) as Destination, values(login_name) as DataOwner, values(host_name) as DartNode, values(xfer_type) as XferMethod, min(DeliveryComplete) as EarliestFileXfer, max(DeliveryComplete) as LastFileXfer by subscription_name&lt;BR /&gt;| where now()&amp;gt;relative_time(LastFileXfer, "+24h@h")&lt;BR /&gt;| eval DaysOld=round((now() - round(LastFileXfer, 0))/86400, 2)&lt;BR /&gt;| eval EarliestFileXfer=strftime(EarliestFileXfer, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval LastFileXfer=strftime(LastFileXfer, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table subscription_name Source Destination DataOwner DartNode XferMethod EarliestFileXfer LastFileXfer DaysOld&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 20:37:00 GMT</pubDate>
    <dc:creator>pdreef</dc:creator>
    <dc:date>2021-01-11T20:37:00Z</dc:date>
    <item>
      <title>Setting duration in search and save as an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535399#M10101</link>
      <description>&lt;P&gt;We are trying to set an alert for a sub_A to trigger if no data is sent&amp;nbsp; in 1 hour duration.&amp;nbsp; The previous splunk expert wrote the search below, and i was under the impression to change the "+24h@h" to "1h@h" and "86400",&amp;nbsp; to 3600 would change the parameter of the alert.&lt;/P&gt;&lt;P&gt;| where now()&amp;gt;relative_time(LastFileXfer, "+24h@h")&lt;BR /&gt;| eval DaysOld=round((now() - round(LastFileXfer, 0))/86400, 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this need to be changed when saving the alert in menu section of the alert?&lt;/P&gt;&lt;P&gt;-----Thank you-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------Search------&lt;/P&gt;&lt;P&gt;index=dart_index source=OPS_NIPR_DART_DMZ_IncomingOutgoing status_message="OK" earliest=-48h@h subscription_name IN ("Sub_A")&lt;BR /&gt;| eval DeliveryComplete=strptime(delivery_complete, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| stats values(src_host) as Source, values(dest_host) as Destination, values(login_name) as DataOwner, values(host_name) as DartNode, values(xfer_type) as XferMethod, min(DeliveryComplete) as EarliestFileXfer, max(DeliveryComplete) as LastFileXfer by subscription_name&lt;BR /&gt;| where now()&amp;gt;relative_time(LastFileXfer, "+24h@h")&lt;BR /&gt;| eval DaysOld=round((now() - round(LastFileXfer, 0))/86400, 2)&lt;BR /&gt;| eval EarliestFileXfer=strftime(EarliestFileXfer, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| eval LastFileXfer=strftime(LastFileXfer, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| table subscription_name Source Destination DataOwner DartNode XferMethod EarliestFileXfer LastFileXfer DaysOld&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 20:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535399#M10101</guid>
      <dc:creator>pdreef</dc:creator>
      <dc:date>2021-01-11T20:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Setting duration in search and save as an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535408#M10104</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229967"&gt;@pdreef&lt;/a&gt;&amp;nbsp;, looking at query and requirement, this should work by replacing &lt;A href="mailto:24h@h" target="_blank"&gt;24h@h&lt;/A&gt;&amp;nbsp;by 1h&amp;nbsp; in below line considering you want to check that there should be data every 1 hour duration irrespective of the mm value in hh:mm.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| where now()&amp;gt;relative_time(LastFileXfer, "+1h")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 23:32:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535408#M10104</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2021-01-11T23:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting duration in search and save as an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535555#M10107</link>
      <description>&lt;P&gt;Yes, that worked. Thank you. I tired had and extra "h" and this is why it wasn't working.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 20:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535555#M10107</guid>
      <dc:creator>pdreef</dc:creator>
      <dc:date>2021-01-12T20:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting duration in search and save as an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535648#M10110</link>
      <description>&lt;P&gt;Great&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/229967"&gt;@pdreef&lt;/a&gt;&amp;nbsp;, could youplease mark my response as solution.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 13:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535648#M10110</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2021-01-13T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting duration in search and save as an alert</title>
      <link>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535691#M10111</link>
      <description>&lt;P&gt;Of course, thanks again for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 17:29:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Setting-duration-in-search-and-save-as-an-alert/m-p/535691#M10111</guid>
      <dc:creator>pdreef</dc:creator>
      <dc:date>2021-01-13T17:29:06Z</dc:date>
    </item>
  </channel>
</rss>

