<?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 can I find all scheduled searches that have a timeframe of 'All time'? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643822#M223034</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It would be very helpful if you could share your inputs/feedback on the SPL that I posted.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 19:02:48 GMT</pubDate>
    <dc:creator>Taruchit</dc:creator>
    <dc:date>2023-05-18T19:02:48Z</dc:date>
    <item>
      <title>How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643482#M222898</link>
      <description>&lt;P&gt;I am looking to find all scheduled searches within the environment that are using a timeframe of 'All time' e.g. if a search is scheduled to run every hour and is using timeframe of 'All time', I would like to change that search to use 'Last 60 minutes' instead.&lt;/P&gt;
&lt;P&gt;Any helpful searches would be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 12:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643482#M222898</guid>
      <dc:creator>cwhelan</dc:creator>
      <dc:date>2023-05-16T12:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643503#M222909</link>
      <description>&lt;P&gt;Here is a search I use to help me find all-time searches.&amp;nbsp; It's not perfect, but definitely helps.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/saved/searches 
| search is_scheduled=1 disabled=0 
| fields dispatch.earliest_time dispatch.latest_time eai:acl.owner eai:acl.sharing search cron_schedule title eai:acl.app schedule_window
| where NOT like(title, "_ScheduledView_%")
| rex field=search "(?&amp;lt;base&amp;gt;^\|+)"
| rex field=base "earliest\s*=\s*(?&amp;lt;earliest&amp;gt;[^\|\s]+)"
| rename dispatch.earliest_time as earliest_time, dispatch.latest_time as latest_time, eai:acl.owner as Owner, eai:acl.sharing as Sharing, eai:acl.app as App
| where (earliest_time&amp;lt;100 AND isnull(earliest) and NOT match(base,"^\|"))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 May 2023 13:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643503#M222909</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-16T13:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643522#M222919</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255728"&gt;@cwhelan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Please share if the below code helps you get the results: -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_audit search_et="N/A" search_lt="N/A" user!="splunk-system-user"
|rex "\s+savedsearch\_name=\"(?&amp;lt;searchName&amp;gt;[\w\d\_\-]*[^\"])"
|stats count BY searchName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 21:03:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643522#M222919</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-16T21:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643774#M223019</link>
      <description>&lt;P&gt;Thanks a lot guys.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 13:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643774#M223019</guid>
      <dc:creator>cwhelan</dc:creator>
      <dc:date>2023-05-18T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643822#M223034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It would be very helpful if you could share your inputs/feedback on the SPL that I posted.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 19:02:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643822#M223034</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-18T19:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643838#M223040</link>
      <description>&lt;P&gt;This query will detect ad-hoc as well as scheduled searches, but only finds those that actually ran during the search window.&amp;nbsp; It won't report on those that are scheduled to run at another time.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 20:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643838#M223040</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-18T20:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643873#M223062</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;By any chance, is it possible to find how much space on disk a search used? e.g. some users are running ad-hoc searches that frequently exceed 10GB in disk size.&lt;/P&gt;&lt;P&gt;I tried editing Taruchit's search but couldn't find any fields in _audit relating to search size on disk.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 07:48:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643873#M223062</guid>
      <dc:creator>cwhelan</dc:creator>
      <dc:date>2023-05-19T07:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643993#M223102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for sharing.&lt;/P&gt;&lt;P&gt;If I modify the rex to avoid capturing empty string for field "savedsearch_name", in your opinion does that help to solve the problem of avoiding ad-hoc searches in the result?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 02:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/643993#M223102</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-20T02:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644016#M223107</link>
      <description>&lt;P&gt;Yes, that would help.&amp;nbsp; However, because the audit log only contains searches that have run in the time range, the query will not detect searches that are scheduled but have not yet run.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 12:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644016#M223107</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-20T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644167#M223127</link>
      <description>&lt;P&gt;The only place I've found disk usage information is in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 18:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644167#M223127</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-22T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find all scheduled searches that have a timeframe of 'All time'?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644627#M223240</link>
      <description>&lt;P&gt;Thank you for sharing your inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 12:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-all-scheduled-searches-that-have-a-timeframe-of/m-p/644627#M223240</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-25T12:51:33Z</dc:date>
    </item>
  </channel>
</rss>

