<?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 delete 'DONE' jobs in a Search Head Cluster in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369061#M67015</link>
    <description>&lt;P&gt;Usually the search jobs will expire automatically after 10 minutes,&lt;/P&gt;

&lt;P&gt;If they are running lots of searches you need increase &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;srchDiskQuota&lt;/STRONG&gt; the maximum disk space in MB to store the results of the searches, increase this one if you are planning to retrieve a lot of results , in authorize.conf&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 16:28:55 GMT</pubDate>
    <dc:creator>naidusadanala</dc:creator>
    <dc:date>2018-01-02T16:28:55Z</dc:date>
    <item>
      <title>How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369059#M67013</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;

&lt;P&gt;Is there a way to delete a DONE or running job in a Search Head Cluster?&lt;/P&gt;

&lt;P&gt;Currently some of my users constantly hitting their disk space usage limit. I tried to delete their jobs (or let them to delete their own jobs), but every time I hit the 'Delete' button in 'Job Manager' page, nothing actually happen. I used the below search query to identify if the disk space is actually being clean-up:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
| rest splunk_server=local /services/search/jobs &lt;BR /&gt;
| eval diskUsageMB=diskUsage/1024/1024 &lt;BR /&gt;
| rename eai:acl.owner AS owner, optimizedSearch AS searchQuery &lt;BR /&gt;
| stats sum(diskUsageMB) AS diskUageMB by sid owner searchQuery &lt;BR /&gt;
| table owner searchQuery diskUsageMB &lt;BR /&gt;
| search owner = xxx &lt;BR /&gt;
| addcoltotals labelfield=owner&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;This search confirms that jobs are still using disk space quota even after 'Delete'. &lt;/P&gt;

&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2017 02:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369059#M67013</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2017-12-31T02:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369060#M67014</link>
      <description>&lt;P&gt;You might need to check the dispatch jobs for your Splunk servers. You can manually remove that to clean the disk space.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 13:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369060#M67014</guid>
      <dc:creator>risgupta</dc:creator>
      <dc:date>2018-01-02T13:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369061#M67015</link>
      <description>&lt;P&gt;Usually the search jobs will expire automatically after 10 minutes,&lt;/P&gt;

&lt;P&gt;If they are running lots of searches you need increase &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;srchDiskQuota&lt;/STRONG&gt; the maximum disk space in MB to store the results of the searches, increase this one if you are planning to retrieve a lot of results , in authorize.conf&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 16:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369061#M67015</guid>
      <dc:creator>naidusadanala</dc:creator>
      <dc:date>2018-01-02T16:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369062#M67016</link>
      <description>&lt;P&gt;Hi naidusadanala,&lt;/P&gt;

&lt;P&gt;Thanks for your response. I know how to increase disk quota for users. But this question is actually asking how to delete a job in a Search Head Cluster environment. &lt;/P&gt;

&lt;P&gt;In single search head, when users delete their jobs, the jobs will be disappear immediately. But this doesn't work at SHC.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Season&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 20:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369062#M67016</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2018-01-02T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369063#M67017</link>
      <description>&lt;P&gt;Hi risgupta,&lt;/P&gt;

&lt;P&gt;Thanks for your response. Normal users should have ability to delete their own jobs. They have no access to the Splunk server, so can manually remove the dispatch files. &lt;/P&gt;

&lt;P&gt;And this manual approach will not work in larger environment, Splunk admin will not have bandwidth to remove all 'DONE' jobs in a SHC.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Season&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 20:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369063#M67017</guid>
      <dc:creator>season88481</dc:creator>
      <dc:date>2018-01-02T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete 'DONE' jobs in a Search Head Cluster</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369064#M67018</link>
      <description>&lt;P&gt;So for that, there is a specific command which is &lt;BR /&gt;
 ./splunk clean dispatch &lt;BR /&gt;
which will clean the jobs for you and there you can apply a cron schedule to run this command to run after evey 10 to 15 minutes (what ever is best for you).&lt;/P&gt;

&lt;P&gt;Along with that you can set the dispatch.ttl limit for the limits.conf&lt;BR /&gt;
For more details you can check this &lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2012/09/12/how-long-does-my-search-live-default-search-ttl.html"&gt;https://www.splunk.com/blog/2012/09/12/how-long-does-my-search-live-default-search-ttl.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know how it goes.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 06:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-DONE-jobs-in-a-Search-Head-Cluster/m-p/369064#M67018</guid>
      <dc:creator>risgupta</dc:creator>
      <dc:date>2018-01-03T06:59:09Z</dc:date>
    </item>
  </channel>
</rss>

