<?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: How to get searches with time range as All Time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697805#M237019</link>
    <description>&lt;P&gt;apiStartTime and apiEndTime are not set when info=completed but are set when info=granted - try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action=search provenance=* info=granted host IN (...)  (apiStartTime="ZERO_TIME" OR apiEndTime="ZERO_TIME")
| table user, apiStartTime, apiEndTime, search_et, search_lt, search
| convert ctime(search_*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2024 07:37:39 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-30T07:37:39Z</dc:date>
    <item>
      <title>How to get searches with time range as All Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697743#M236997</link>
      <description>&lt;DIV&gt;Hello All,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I need to search for SPLs having time range as All time. I used the below SPL:-&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action=search provenance=* info=completed host IN (...)
 |table user, apiStartTime, apiEndTime, search_,et, search_lt, search
 |search apiStartTime='ZERO_TIME' OR apiEndTime='ZERO_TIME'
 |convert ctime(search_*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;I get results with&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;apiStartTime as Empty&lt;/DIV&gt;&lt;DIV&gt;apiEndTime as 'ZERO_TIME'&lt;/DIV&gt;&lt;DIV&gt;search_et 07/31/2024 00:00:00&lt;/DIV&gt;&lt;DIV&gt;search_lt 08/29/2024 13:10:58&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thus, how do I interpret the above results and how do I modify the SPL to fetch correct results?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you&lt;/DIV&gt;&lt;DIV&gt;Taruchit&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Aug 2024 18:06:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697743#M236997</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2024-08-29T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get searches with time range as All Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697802#M237018</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223102"&gt;@Taruchit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;at first don't use the search command when you cn put all the parameters in the main search.&lt;/P&gt;&lt;P&gt;Then I'd avoid to use all time in a search because you could have too many events, but define a useful timerange.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action=search provenance=* info=completed host IN (...)  (apiStartTime="ZERO_TIME" OR apiEndTime="ZERO_TIME")
| table user, apiStartTime, apiEndTime, search_,et, search_lt, search
| convert ctime(search_*)&lt;/LI-CODE&gt;&lt;P&gt;about the meaning of the results, they dependsa on the parameters you defined, probably with apiEndTime="ZERO_TIME" you don't have the&amp;nbsp;&lt;SPAN&gt;apiStartTime&amp;nbsp;field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Analyze your search and modify it to have the best results for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 06:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697802#M237018</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-08-30T06:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get searches with time range as All Time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697805#M237019</link>
      <description>&lt;P&gt;apiStartTime and apiEndTime are not set when info=completed but are set when info=granted - try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit action=search provenance=* info=granted host IN (...)  (apiStartTime="ZERO_TIME" OR apiEndTime="ZERO_TIME")
| table user, apiStartTime, apiEndTime, search_et, search_lt, search
| convert ctime(search_*)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 07:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-searches-with-time-range-as-All-Time/m-p/697805#M237019</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-30T07:37:39Z</dc:date>
    </item>
  </channel>
</rss>

