<?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: What timeframe do REST API searches use? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640441#M221930</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243510"&gt;@random_event&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It pulls whatever you have at that endpoint for all time.for example if you want to know all the KO belongs to x person you can filter it and see all the enabled and disabled KO’s belongs to the x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 02:30:39 GMT</pubDate>
    <dc:creator>rohit1793</dc:creator>
    <dc:date>2023-04-19T02:30:39Z</dc:date>
    <item>
      <title>What timeframe do REST API searches use?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640436#M221928</link>
      <description>&lt;P class="lia-align-left"&gt;I need to count the number of times an alert has triggered in a specific time window (say, last 24 hours).&amp;nbsp; I am trying to do that via&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;| rest&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;but noticed the counts remain constant despite changing the search time interval (60m, yesterday, last 7d, 15m, etc.).&lt;/P&gt;&lt;P&gt;What "time" does the | rest search or return results for?&amp;nbsp; I tried reading the &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/SearchReference/Rest" target="_blank" rel="noopener"&gt;docs on rest&lt;/A&gt; and and the &lt;A title="user manual for REST API" href="https://docs.splunk.com/Documentation/Splunk/9.0.4/RESTUM/RESTusing#Example_A:_CSV_response_format_example" target="_blank" rel="noopener"&gt;user manual for REST API&lt;/A&gt; but nothing quite explains it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current SPL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/alerts/fired_alerts splunk_server=local
| search author="me@me.com"
| table eai:acl.app eai:acl.owner id title triggered_alert_count 
| rename eai:acl.* as *, app as App, owner as Owner, id as Endpoint, title as Title, triggered_alert_count as "Count of Triggered Alerts"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 22:17:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640436#M221928</guid>
      <dc:creator>random_event</dc:creator>
      <dc:date>2023-04-18T22:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: What timeframe do REST API searches use?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640441#M221930</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243510"&gt;@random_event&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It pulls whatever you have at that endpoint for all time.for example if you want to know all the KO belongs to x person you can filter it and see all the enabled and disabled KO’s belongs to the x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 02:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640441#M221930</guid>
      <dc:creator>rohit1793</dc:creator>
      <dc:date>2023-04-19T02:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: What timeframe do REST API searches use?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640613#M221956</link>
      <description>&lt;P&gt;Okay, so REST will query all available data as you said for "all time".&amp;nbsp; How is the time determined?&amp;nbsp; Is it based on the retention of internal indexes (mine is set to 60d)?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640613#M221956</guid>
      <dc:creator>random_event</dc:creator>
      <dc:date>2023-04-19T14:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: What timeframe do REST API searches use?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640647#M221962</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243510"&gt;@random_event&lt;/a&gt;&amp;nbsp;- Most of the &lt;STRONG&gt;| rest&lt;/STRONG&gt; command gives constant output regardless of time-range selected.&lt;/P&gt;&lt;P&gt;So if you want something specific, then you have to filter with &lt;STRONG&gt;| where&lt;/STRONG&gt; condition. So look at the results there must be some field in it with time in it, on which you can apply the where condition to filter as you like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps, upvote if it does!!!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 16:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-timeframe-do-REST-API-searches-use/m-p/640647#M221962</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-19T16:26:28Z</dc:date>
    </item>
  </channel>
</rss>

