<?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: Too many search jobs found in the dispatch directory in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64187#M1458</link>
    <description>&lt;P&gt;I confirm an alert storm that causes saturation splunk server, Once the alert removes the problem is set,&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2016 09:36:37 GMT</pubDate>
    <dc:creator>CevSplunk</dc:creator>
    <dc:date>2016-04-28T09:36:37Z</dc:date>
    <item>
      <title>Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64173#M1444</link>
      <description>&lt;P&gt;i'm seeing this message after firing up backfill data in Splunk Deployment Monitor:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Too many search jobs found in the dispatch directory (found=3692, warning level=2000). This could negatively impact Splunk's performance, consider removing some of the old search jobs.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this dangerous? Can I manually clear out var/run/splunk/dispatch when it's done?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64173#M1444</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-08-24T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64174#M1445</link>
      <description>&lt;P&gt;If you see this error you can manually clear out any jobs in the dispatch folder. I would probably recommend you start with the older ones.  The only downside is that the artifacts of those saved searches which populated the summary index won't be around once you clear the dispatch directory. Since the data you are after is in the summary index, it doesn't matter. Any artifacts you eliminate will be regenerated at the next scheduled run time for a particular saved search. &lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 22:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64174#M1445</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-08-24T22:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64175#M1446</link>
      <description>&lt;P&gt;Conversely, is there some way to raise the threshold if you actually running that many searches?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 02:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64175#M1446</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2011-10-20T02:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64176#M1447</link>
      <description>&lt;P&gt;To be honest, I would expect splunk to clean these out. It seems like it should be an automatic house keeping task. We are starting to see this quite regularly in our deployment.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2011 22:34:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64176#M1447</guid>
      <dc:creator>brianokelly</dc:creator>
      <dc:date>2011-11-09T22:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64177#M1448</link>
      <description>&lt;P&gt;To add to jbsplunk's answer:   &lt;/P&gt;

&lt;P&gt;The number of directories relating to the search artifacts in the Dispatch directory can potentially affect search performance since we have to scan each of the directories to determine if the artifacts are present or not.&lt;/P&gt;

&lt;P&gt;The UI warning message about Dispatch directories being &amp;gt; 2K is new to 4.2.3. There isn’t any hard limit of 2K that is impacting anything as the warning is what was implemented as a best practice to start to review search jobs in general eg. is there a scheduled search that has an excessively long ttl?&lt;/P&gt;

&lt;P&gt;You can change that 2K to a higher number so the warning takes longer to display via the&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[search] stanza&lt;/CODE&gt; in your &lt;BR /&gt;
&lt;CODE&gt;$SPLUNK_HOME/etc/system/local/limits.conf&lt;/CODE&gt;   &lt;/P&gt;

&lt;P&gt;From the $SPLUNK_HOME/etc/system/README/limits.conf.spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search]
dispatch_dir_warning_size = &amp;lt;int&amp;gt;

* The number of jobs in the dispatch directory when to issue a bulletin message warning that performance could be impacted
* Defaults to 2000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The appropriate number of Dispatch directories that should be set before the performance is impacted would vary per environment as it would depend on variables such as the volume and type of searches being run, what are the ttl etc.&lt;/P&gt;

&lt;P&gt;If you find subdirectories in $SPLUNK_HOME/var/run/splunk/dispatch beyond 24hrs of their last modtime AND the subdirectory does not contain BOTH info.csv and status.csv files,  that is considered a failed search job and that subdirectory can be safely removed. We expect this should be automatically performed by the dispatch reaper starting in 4.3&lt;/P&gt;

&lt;P&gt;In the meanwhile outside of your own cron/scripting, there is an option where you can move subdirectories based on a timeline you have determined is acceptable out of the Dispatch directory .&lt;/P&gt;

&lt;P&gt;Below is the usage information. &lt;BR /&gt;
Use this command to move jobs whose last modification time is earlier than the specified time from the dispatch directory to the specified destination directory.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;usage: $SPLUNK_HOME/bin/splunk cmd splunkd clean-dispatch {destination directory where to move jobs} {latest job mod time}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The destination directory must be on the same partition/filesystem as the dispatch directory.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;example: splunk cmd splunkd clean-dispatch /opt/splunk/old-dispatch-jobs/ -1month
example: splunk cmd splunkd clean-dispatch /opt/splunk/old-dispatch-jobs/ -10d@d
example: splunk cmd splunkd clean-dispatch /opt/splunk/old-dispatch-jobs/ 2011-06-01T12:34:56.000-07:00
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are future enhancements to manage search job cleanup.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2011 20:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64177#M1448</guid>
      <dc:creator>Ellen</dc:creator>
      <dc:date>2011-12-02T20:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64178#M1449</link>
      <description>&lt;P&gt;Our issue looks like a bug in jobs.  Certain jobs were not showing as completed and therefore hung around on disk until they expired.  Issue was reported to Splunk Support and no word as to whether they will mark this as a bug or not.  For now we have deleted all these old scheduled searches (probably some configuration issue after upgrade) and recreated them by hand.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2011 23:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64178#M1449</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2011-12-02T23:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64179#M1450</link>
      <description>&lt;P&gt;I had the same problem.  I ran the clean-dispatch command and for a few results got the following:&lt;/P&gt;

&lt;P&gt;Could not move /opt/splunk/var/run/splunk/dispatch/scheduler_&lt;EM&gt;cmerchant&lt;/EM&gt;&lt;EM&gt;search_SW50ZXJhY3QgU3VzcGljaW91cyBTb3VyY2UgSVAgQWxlcnQ_at_1339130700_2aeaae3b6e48c487 to /space/splunktmp/scheduler&lt;/EM&gt;&lt;EM&gt;cmerchant&lt;/EM&gt;_search_SW50ZXJhY3QgU3VzcGljaW91cyBTb3VyY2UgSVAgQWxlcnQ_at_1339130700_2aeaae3b6e48c487. Invalid cross-device link&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64179#M1450</guid>
      <dc:creator>responsys_cm</dc:creator>
      <dc:date>2020-09-28T11:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64180#M1451</link>
      <description>&lt;P&gt;I updated the answer; for the current limitations of clean-dispatch, destdir must be on the same file system as the dispatch dir.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2013 16:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64180#M1451</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2013-01-24T16:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64181#M1452</link>
      <description>&lt;P&gt;I ran clean-dispatch command and it moves them to old-dispatch directory, do I really need to keep them or can I just delete them?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2013 22:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64181#M1452</guid>
      <dc:creator>hugo_vazquez</dc:creator>
      <dc:date>2013-06-13T22:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64182#M1453</link>
      <description>&lt;P&gt;are there any latest updates as to how to clean up those extra jobs running and giving errors ?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 08:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64182#M1453</guid>
      <dc:creator>ACNmateen</dc:creator>
      <dc:date>2013-09-17T08:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64183#M1454</link>
      <description>&lt;P&gt;great question !  We have had Splunk for 2 years, I have never had anyone ask me for search results from the old-dispatch-jobs directory.   So in my mind that means delete them say after a week. : - ) &lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 19:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64183#M1454</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2015-04-21T19:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64184#M1455</link>
      <description>&lt;P&gt;to add answer to the ellen,&lt;/P&gt;

&lt;P&gt;some times, it won't delete because of &amp;lt;old_dispatch&amp;gt; directory what we created to move dispatch jobs may full. so create one more and move them. it works.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 05:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64184#M1455</guid>
      <dc:creator>srisahitya_v</dc:creator>
      <dc:date>2015-05-14T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64185#M1456</link>
      <description>&lt;P&gt;might be "real time alerts"  also a cause to produce many dispatch files.&lt;/P&gt;

&lt;P&gt;for my case, one real time alert was triggering 3-5 times in a second. &lt;/P&gt;

&lt;P&gt;once we changed it to schedule alert,  problem was solved. &lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 07:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64185#M1456</guid>
      <dc:creator>srisahitya_v</dc:creator>
      <dc:date>2015-06-08T07:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64186#M1457</link>
      <description>&lt;P&gt;My user base is constantly doing this... we seem to have to do a quarterly sweep of users building alerts out f real-time searches which then flood the dispatch directory over time...&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64186#M1457</guid>
      <dc:creator>enno</dc:creator>
      <dc:date>2016-03-23T23:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64187#M1458</link>
      <description>&lt;P&gt;I confirm an alert storm that causes saturation splunk server, Once the alert removes the problem is set,&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 09:36:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64187#M1458</guid>
      <dc:creator>CevSplunk</dc:creator>
      <dc:date>2016-04-28T09:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64188#M1459</link>
      <description>&lt;P&gt;Yes Dispatch directory can be cleared it wont cause any issues&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64188#M1459</guid>
      <dc:creator>arunsundaram</dc:creator>
      <dc:date>2017-06-16T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Too many search jobs found in the dispatch directory</title>
      <link>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64189#M1460</link>
      <description>&lt;P&gt;Real-time alerts spammed our dispatch folder and ended up breaking the entire Splunk interface. Cleared /var/run/splunk/dispatch and modded the real-time alerts and boom, fixed.&lt;/P&gt;

&lt;P&gt;If anyone doesn't know cron schedules, setting to "* * * * *" should fix this problem. It's alerting every minute instead of real-time. &lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Too-many-search-jobs-found-in-the-dispatch-directory/m-p/64189#M1460</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-08-10T17:49:17Z</dc:date>
    </item>
  </channel>
</rss>

