<?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 Search that shows scheduled time of saved searches in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427789#M7016</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have a few thousand savedsearches. Most of times that they are scheduled is at the top of the hour and its affecting performance across the enterprise. Is there a search i can run that shows me the name of the saved search, the next time it is scheduled and the owner? This way i can direct the owner to use cron schedule and use an off hour time to mitigate our performance issue.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 14:24:26 GMT</pubDate>
    <dc:creator>brdr</dc:creator>
    <dc:date>2019-04-26T14:24:26Z</dc:date>
    <item>
      <title>Search that shows scheduled time of saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427789#M7016</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have a few thousand savedsearches. Most of times that they are scheduled is at the top of the hour and its affecting performance across the enterprise. Is there a search i can run that shows me the name of the saved search, the next time it is scheduled and the owner? This way i can direct the owner to use cron schedule and use an off hour time to mitigate our performance issue.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427789#M7016</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2019-04-26T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search that shows scheduled time of saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427790#M7017</link>
      <description>&lt;P&gt;Give this a try. This uses cron-schedule of the search to identity  if it's running every 1/5/10/15/20/30/60 min on the hours.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches splunk_server=local |where disabled=0 AND is_scheduled=1 | rex field=cron_schedule "(?&amp;lt;Min&amp;gt;\S+)\s+(?&amp;lt;Hr&amp;gt;\S+)\s+(?&amp;lt;Day&amp;gt;\S+)\s+(?&amp;lt;Mon&amp;gt;\S+)\s+(?&amp;lt;Wday&amp;gt;\S+)" | table author eai:acl.app  title disabled is_scheduled  cron_schedule Min Hr Day Mon Wday search | rename eai:acl.app as appName title as searchName
| eval searchType=case(cron_schedule="* * * * *", "Running Every Minute", 
        (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/5"), "Running Every 5 Minute", 
        (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/10"), "Running Every 10 Minute", 
        (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/15"), "Running Every 15 Minute", 
        (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/20"), "Running Every 20 Minute", 
        (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/30"), "Running Every 30 Minute", 
       (Hr="*" AND Day="*" AND Mon="*" AND Wday="*" ) AND (Min="*/30"), "On the hour", 
         match(cron_schedule,"^(\d+,\d+)+ \* \* \* \*$"), "Running Multiple times every hour", 
         match(cron_schedule,"^\d+ \* \* \* \*$"), "Running Every Hour", 
         match(cron_schedule,"^\d+ \d+ \* \* \*$"), "Running Daily",true(),"Other")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Apr 2019 16:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427790#M7017</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-26T16:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search that shows scheduled time of saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427791#M7018</link>
      <description>&lt;P&gt;Awesome. Thank you somesoni2!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 18:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427791#M7018</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2019-04-26T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search that shows scheduled time of saved searches</title>
      <link>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427792#M7019</link>
      <description>&lt;P&gt;Thanks for the assist!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 19:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Search-that-shows-scheduled-time-of-saved-searches/m-p/427792#M7019</guid>
      <dc:creator>dillardo_2</dc:creator>
      <dc:date>2019-08-13T19:36:30Z</dc:date>
    </item>
  </channel>
</rss>

