<?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 How do I retrieve the time range from the alert script? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-I-retrieve-the-time-range-from-the-alert-script/m-p/139383#M2250</link>
    <description />
    <pubDate>Thu, 09 Apr 2015 04:20:25 GMT</pubDate>
    <dc:creator>walterleunghk</dc:creator>
    <dc:date>2015-04-09T04:20:25Z</dc:date>
    <item>
      <title>How do I retrieve the time range from the alert script?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-retrieve-the-time-range-from-the-alert-script/m-p/139383#M2250</link>
      <description />
      <pubDate>Thu, 09 Apr 2015 04:20:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-retrieve-the-time-range-from-the-alert-script/m-p/139383#M2250</guid>
      <dc:creator>walterleunghk</dc:creator>
      <dc:date>2015-04-09T04:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I retrieve the time range from the alert script?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-I-retrieve-the-time-range-from-the-alert-script/m-p/139384#M2251</link>
      <description>&lt;P&gt;I am not sure what your context is but you should be able to get the search time range in any context by using &lt;CODE&gt;addinfo&lt;/CODE&gt; (pipe this onto the end of your search) which will create these fields:&lt;/P&gt;

&lt;P&gt;info_min_time=The earliest time boundary for the search.&lt;BR /&gt;
info_max_time=The latest time boundary for the search.&lt;BR /&gt;
info_sid=The ID of the search that generated the event.&lt;BR /&gt;
info_search_time=The time when the search was run.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/addinfo" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.5/SearchReference/addinfo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-I-retrieve-the-time-range-from-the-alert-script/m-p/139384#M2251</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-29T06:54:03Z</dc:date>
    </item>
  </channel>
</rss>

