<?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 Rest commands with search time reference in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rest-commands-with-search-time-reference/m-p/295021#M56037</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I need to search alerts triggered for my app in the given time range. The time range is selected from time range picker. Do anyone have any inputs?&lt;/P&gt;

&lt;P&gt;I am struggling with:&lt;BR /&gt;
| rest /servicesNS/-/-/saved/searches search="eai:acl.app=test AND disabled=0" | table title eai:acl.app eai:acl.owner disabled is_scheduled cron_schedule &lt;/P&gt;

&lt;P&gt;but this gives consistent result irrespective of time selected.&lt;/P&gt;

&lt;P&gt;please help with some pointers&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:43:19 GMT</pubDate>
    <dc:creator>splunkdivya</dc:creator>
    <dc:date>2020-09-29T18:43:19Z</dc:date>
    <item>
      <title>Rest commands with search time reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-commands-with-search-time-reference/m-p/295021#M56037</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I need to search alerts triggered for my app in the given time range. The time range is selected from time range picker. Do anyone have any inputs?&lt;/P&gt;

&lt;P&gt;I am struggling with:&lt;BR /&gt;
| rest /servicesNS/-/-/saved/searches search="eai:acl.app=test AND disabled=0" | table title eai:acl.app eai:acl.owner disabled is_scheduled cron_schedule &lt;/P&gt;

&lt;P&gt;but this gives consistent result irrespective of time selected.&lt;/P&gt;

&lt;P&gt;please help with some pointers&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:43:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-commands-with-search-time-reference/m-p/295021#M56037</guid>
      <dc:creator>splunkdivya</dc:creator>
      <dc:date>2020-09-29T18:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rest commands with search time reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rest-commands-with-search-time-reference/m-p/295022#M56038</link>
      <description>&lt;P&gt;Specifying time ranges with the &lt;CODE&gt;rest&lt;/CODE&gt; command is a little wonky, but it's totally doable. Here's an example, which would search over yesterday:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches search="eai:acl.app=test AND disabled=0" earliest_time=`time_modifier(-1d@d)` latest_time=`time_modifier(@d)` 
| table title eai:acl.app eai:acl.owner disabled is_scheduled cron_schedule
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The time modifiers you can use are the ones documented here: &lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/SearchTimeModifiers"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rest-commands-with-search-time-reference/m-p/295022#M56038</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-28T13:29:27Z</dc:date>
    </item>
  </channel>
</rss>

