<?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 find all searches that are scheduled to run every hour? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178661#M51389</link>
    <description>&lt;P&gt;Do you capture Process information on the server? (may be using TA apps). If yes, then you might be able to track the process which is causing those peak CPU usage.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Aug 2014 14:23:50 GMT</pubDate>
    <dc:creator>rahulroy_splunk</dc:creator>
    <dc:date>2014-08-15T14:23:50Z</dc:date>
    <item>
      <title>How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178652#M51380</link>
      <description>&lt;P&gt;I have this search&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host=MyIndeders sourcetype=cpu | multikv fields CPU pctUser | timechart span=5m avg(pctUser) AS "Avg % CPU" by host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I can create a chart showing the CPU pegs at 100% for 10 minutes every hour.&lt;/P&gt;

&lt;P&gt;I want to find all scheduled jobs that are scheduled to run every hour to find the ones that I can stop.&lt;/P&gt;

&lt;P&gt;Anyone know how I can search for jobs in all apps that might run every hour?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 22:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178652#M51380</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-08-11T22:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178653#M51381</link>
      <description>&lt;P&gt;You have to use the RESTAPI for this&lt;/P&gt;

&lt;P&gt;&lt;A href="http://"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.2/RESTAPI/RESTsearch#saved.2Fsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The returned values from the RESTAPI will help you to build your algorithm to stop the searches.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 02:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178653#M51381</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-12T02:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178654#M51382</link>
      <description>&lt;P&gt;Thanks I have been looking for about an hour now but have not been able to find the info useing rest api.&lt;/P&gt;

&lt;P&gt;I used this command &lt;CODE&gt;| rest /services/autherization/scheduledviews&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and was able to only see one scheduled view.  I have not found the scheduled searches.  any idea where to look?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178654#M51382</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-08-12T16:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178655#M51383</link>
      <description>&lt;P&gt;Scheduled views (simple xml dashboards scheduled to run) are different from Scheduled searches (saved search scheduled to run). You should try using "|rest /services/saved/searches".&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178655#M51383</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-12T16:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178656#M51384</link>
      <description>&lt;P&gt;Thanks, this did show me about 30 saved searches.  I know I have many more than that.  of the 30 only 12 have something in the "cron_schedule" column. four of which are running every 5 minutes "*/5 * * * *".  I am looking for expensive jobs that run every hour.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178656#M51384</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-08-12T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178657#M51385</link>
      <description>&lt;P&gt;we have been using this rest API for quite sometime and it works fine. &lt;BR /&gt;
Did you get a chance to login to SplunkWeb and check how many saved searches are there and indeed how many of them are scheduled?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2014 07:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178657#M51385</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-13T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178658#M51386</link>
      <description>&lt;P&gt;Yes I did thanks for the help,  I looked as suggested by @somesoni above  "|rest /services/saved/searches" and only found 30 saved searches and I know that I have way more than that.  Also I only found 12 scheduled as I said above.  So fare I have not been able to find the full list of scheduled jobs with there perspective cron schedule.  Jo Joy just yet.  thanks for the help.  I will keep looking till I find the answer.  Maybe I will get support to help; ARGG&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:24:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178658#M51386</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-08-14T13:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178659#M51387</link>
      <description>&lt;P&gt;You can get the historic run for scheduled searches from _internal index. Below search will give you list of scheduled search running every 3600 secs/1 hour, along with their run_time and result_count (which may help you identify expensive queries.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=scheduler  | table _time user savedsearch_name status scheduled_time run_time result_count | sort savedsearch_name _time  | streamstats current=f window=1 first(scheduled_time) as prevSched by savedsearch_name | eval schedulingTime=scheduled_time-prevSched  | where schedulingTime=3600
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178659#M51387</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178660#M51388</link>
      <description>&lt;P&gt;Thanks @Somesoni2 this helps but I still can't find what is causing the 100 CPU spick every hour for 10 minutes. At least I know how to find the scheduled jobs thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2014 22:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178660#M51388</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2014-08-14T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178661#M51389</link>
      <description>&lt;P&gt;Do you capture Process information on the server? (may be using TA apps). If yes, then you might be able to track the process which is causing those peak CPU usage.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Aug 2014 14:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178661#M51389</guid>
      <dc:creator>rahulroy_splunk</dc:creator>
      <dc:date>2014-08-15T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find all searches that are scheduled to run every hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178662#M51390</link>
      <description>&lt;P&gt;You're probably only looking at the current app context. You need to wildcard your query to force it to look at all apps:&lt;BR /&gt;
&lt;CODE&gt; | rest /servicesNS/-/-/saved/searches &lt;CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Add a filter for is_scheduled=1 to see only the scheduled jobs. See &lt;A href="https://answers.splunk.com/answers/221242/is-there-a-way-to-identify-all-scheduled-searches.html"&gt;https://answers.splunk.com/answers/221242/is-there-a-way-to-identify-all-scheduled-searches.html&lt;/A&gt; for details.&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 12:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-all-searches-that-are-scheduled-to-run-every-hour/m-p/178662#M51390</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2015-10-20T12:49:09Z</dc:date>
    </item>
  </channel>
</rss>

