<?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 Controlling dispatch directory growth in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50882#M9756</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have a continual issue in our environment with the $SPLUNK_HOME/var/run/dispatch directory growing out of control – constantly above 2000 directories and decreasing system performance.&lt;/P&gt;

&lt;P&gt;There are 2 usecases that seem to cause the biggest issue:&lt;BR /&gt;
1.  Realtime searches that alert frequently. In this case I see that a new result(and directory) is created every 1 -2 minutes. This has the ability to create up hundreds of directories within a few hours. Most of these realtime alerts are already restricted to a 24 hour retention, however this doesn’t help if alerts are triggered all night, then there are easily 500+ directories by the morning for just one search...&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; Scheduled searches that are setup to executed frequently with a few days retention. We recently had a user setup a search at 5 minute intervals with a 30 day retention… This created a slow growth of 1152 directories over 4 days....&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Between these two usecases we often have Splunk exceeding 3000+ directories quite freqently.&lt;/P&gt;

&lt;P&gt;I’m curious how other people are managing this?&lt;/P&gt;

&lt;P&gt;In some circumstances it makes sense to retain results for 30 days; in the case of a daily search.&lt;BR /&gt;
It also makes sense for critical monitoring to have frequent alerts. However, a combination of both creates too many directories in dispatch for Splunk to operate efficiently.&lt;/P&gt;

&lt;P&gt;Is there a mechanism to enforce job retention to a particular user role? ie 24hours only&lt;/P&gt;

&lt;P&gt;Is there any mechanism to alter how the dispatch directory operates? Even sub folders per app or per user would really help in this case…&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2012 00:05:01 GMT</pubDate>
    <dc:creator>mark</dc:creator>
    <dc:date>2012-09-05T00:05:01Z</dc:date>
    <item>
      <title>Controlling dispatch directory growth</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50882#M9756</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have a continual issue in our environment with the $SPLUNK_HOME/var/run/dispatch directory growing out of control – constantly above 2000 directories and decreasing system performance.&lt;/P&gt;

&lt;P&gt;There are 2 usecases that seem to cause the biggest issue:&lt;BR /&gt;
1.  Realtime searches that alert frequently. In this case I see that a new result(and directory) is created every 1 -2 minutes. This has the ability to create up hundreds of directories within a few hours. Most of these realtime alerts are already restricted to a 24 hour retention, however this doesn’t help if alerts are triggered all night, then there are easily 500+ directories by the morning for just one search...&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt; Scheduled searches that are setup to executed frequently with a few days retention. We recently had a user setup a search at 5 minute intervals with a 30 day retention… This created a slow growth of 1152 directories over 4 days....&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Between these two usecases we often have Splunk exceeding 3000+ directories quite freqently.&lt;/P&gt;

&lt;P&gt;I’m curious how other people are managing this?&lt;/P&gt;

&lt;P&gt;In some circumstances it makes sense to retain results for 30 days; in the case of a daily search.&lt;BR /&gt;
It also makes sense for critical monitoring to have frequent alerts. However, a combination of both creates too many directories in dispatch for Splunk to operate efficiently.&lt;/P&gt;

&lt;P&gt;Is there a mechanism to enforce job retention to a particular user role? ie 24hours only&lt;/P&gt;

&lt;P&gt;Is there any mechanism to alter how the dispatch directory operates? Even sub folders per app or per user would really help in this case…&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 00:05:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50882#M9756</guid>
      <dc:creator>mark</dc:creator>
      <dc:date>2012-09-05T00:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling dispatch directory growth</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50883#M9757</link>
      <description>&lt;P&gt;You should simply change the retention periods of your saved searches. They are controlled by the &lt;CODE&gt;ttl&lt;/CODE&gt; or &lt;CODE&gt;timeout&lt;/CODE&gt; parameter, though depending on how the search is scheduling, there are many places the value may be set or overridden. See the savedsearches.conf and alert_actions.conf files.&lt;/P&gt;

&lt;P&gt;As for users, you can use roles to limit the amount of &lt;EM&gt;space&lt;/EM&gt; a user uses, which indirectly should limit the number of jobs they keep around. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2012 01:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50883#M9757</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-09-05T01:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling dispatch directory growth</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50884#M9758</link>
      <description>&lt;P&gt;Thanks for the answer.. but as someone new to splunk.. my goodness there are a million savedsearches.conf which one?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50884#M9758</guid>
      <dc:creator>mendesjo</dc:creator>
      <dc:date>2016-05-06T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling dispatch directory growth</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50885#M9759</link>
      <description>&lt;P&gt;Go in to the app which is having maximum searches or least useful. In its local directory, make a limits.conf and update the ttl value.&lt;/P&gt;

&lt;P&gt;ttl = &lt;BR /&gt;
* The time to live (ttl), in seconds, of the cache for the results of a given &lt;BR /&gt;
  subsearch.&lt;BR /&gt;
* Do not set this below 120 seconds.&lt;BR /&gt;
* See the definition in the [search] stanza under the “TTL” section for more &lt;BR /&gt;
  details on how the ttl is computed.&lt;BR /&gt;
* Default: 300 (5 minutes)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Limitsconf"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Admin/Limitsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jan 2019 21:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Controlling-dispatch-directory-growth/m-p/50885#M9759</guid>
      <dc:creator>kamal_jagga</dc:creator>
      <dc:date>2019-01-06T21:41:42Z</dc:date>
    </item>
  </channel>
</rss>

