<?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: Why is our dispatch directory getting full with strange CSV files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155022#M31511</link>
    <description>&lt;P&gt;You can't tell Splunk not to store the job, the search would break. The solution is to make sure that this directory/volume has sufficient space to store the temporary files for the searches that you run.&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 18:25:12 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2018-05-21T18:25:12Z</dc:date>
    <item>
      <title>Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155017#M31506</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Our dispatch directory is getting full with some newly created &lt;CODE&gt;srfiletmp_420128713.csv&lt;/CODE&gt; like files. These files are gradually filling up the space on server. Could you please advise on how can I trace back what is generating the search? Are real-time searches responsible?&lt;BR /&gt;
What happens if we delete contents of dispatch directory? Can we traceback saved search name from contents of dispatch directory? Please advise.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155017#M31506</guid>
      <dc:creator>thezero</dc:creator>
      <dc:date>2015-06-12T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155018#M31507</link>
      <description>&lt;P&gt;A general comment: the $SPLUNK_HOME/var/run/splunk directory stores a lot of things&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;information about apps/bundles that have been installed on this machine&lt;/LI&gt;
&lt;LI&gt;information about when scheduled jobs should run, and when they ran in the recent past&lt;/LI&gt;
&lt;LI&gt;information about currently logged-in sessions&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The size of this directory will grow as the number of searches grows in your environment. Therefore, I would move  the contents $SPLUNK_HOME/var/run/splunk (and  $SPLUNK_HOME/var/log/splunk) to a different volume. Use symbolic links to maintain the original directory entries.&lt;/P&gt;

&lt;P&gt;In particular, $SPLUNK_HOME/var/run/splunk/dispatch contains a directory for each search that is running or has completed.  For example, a directory named &lt;CODE&gt;1434308943.358&lt;/CODE&gt; will contain a CSV file of its search results, a search.log with details about the search execution, and other stuff. Using the defaults (which you can override in limits.conf), these directories will be deleted 10 minutes after the search completes - unless the user saves the search results, in which case the results will be deleted after 7 days.&lt;/P&gt;

&lt;P&gt;Scheduled searches use a slightly different name for their results. For example &lt;CODE&gt;scheduler__admin__search__RMD593e0ac5feff458ae_at_1434310020_9&lt;/CODE&gt; is a results directory for a scheduled search requested by the admin. The &lt;CODE&gt;at_1434310020&lt;/CODE&gt; says when the search ran. Unless you change the defaults, each scheduled search keeps only the results from its last 2 runs.&lt;/P&gt;

&lt;P&gt;You can see which searches are running in Linux by using the ps command. In the command output, you will see something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunkd pid=31930] search --id=1434310476.366 --maxbuckets=300 --ttl=600 --maxout=500000 --maxtime=8640000 --lookups=1 --reduce_freq=10 --rf=* --user=admin --pro --roles=admin:power:user  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The id is called the "search id" or "sid". This is the name of the directory (or part of the name for scheduled searches.) If you delete the dispatch directory for a running search, it will hang.&lt;/P&gt;

&lt;P&gt;When you go to the Splunk UI, you can see the search jobs under "Activity - &amp;gt; Jobs". If you click "Inspect", it will show you the search id for the job. Also, the size field in the Jobs list will tell you how much space is being used by the corresponding directory in dispatch. You can manually delete these jobs from this view, if you have sufficient privileges. You can also go to $SPLUNK_HOME/var/run/splunk/dispatch, and delete the directories for &lt;EM&gt;completed&lt;/EM&gt; searches without consequences.&lt;/P&gt;

&lt;P&gt;I don't specifically know what the &lt;CODE&gt;srfiletmp_xxxxxxxx.csv&lt;/CODE&gt; files are, but I would guess that the numbers refer to a search id. Maybe all this info will help you track it down.&lt;/P&gt;

&lt;P&gt;I am sure that Splunk Support will know what these files are for. If you find out, please post an answer or a comment here for the rest of us. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155018#M31507</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2020-09-28T20:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155019#M31508</link>
      <description>&lt;P&gt;Hi lguinn,&lt;BR /&gt;
Thanks for your advice.I finally got the root cause.Issue was due to long running seraches over multiple servers.Temporary csv files were storing the result for searches.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 02:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155019#M31508</guid>
      <dc:creator>thezero</dc:creator>
      <dc:date>2015-06-22T02:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155020#M31509</link>
      <description>&lt;P&gt;Here is a blog that explains what all the files are for inside the dispatch directory:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2012/09/10/a-quick-tour-of-a-dispatch-directory/"&gt;http://blogs.splunk.com/2012/09/10/a-quick-tour-of-a-dispatch-directory/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 20:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155020#M31509</guid>
      <dc:creator>abhullar_splunk</dc:creator>
      <dc:date>2016-07-04T20:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155021#M31510</link>
      <description>&lt;P&gt;Explanation but no answer. What is the solution to this problem? Can we tell Splunk not to store the job?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 18:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155021#M31510</guid>
      <dc:creator>nmaiorana</dc:creator>
      <dc:date>2016-09-15T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why is our dispatch directory getting full with strange CSV files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155022#M31511</link>
      <description>&lt;P&gt;You can't tell Splunk not to store the job, the search would break. The solution is to make sure that this directory/volume has sufficient space to store the temporary files for the searches that you run.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 18:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-our-dispatch-directory-getting-full-with-strange-CSV/m-p/155022#M31511</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2018-05-21T18:25:12Z</dc:date>
    </item>
  </channel>
</rss>

