<?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 raw data files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201287#M39829</link>
    <description>&lt;P&gt;Please accept this as answer if you are happy so that question will be closed and might be useful for others.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 05:16:27 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2015-12-29T05:16:27Z</dc:date>
    <item>
      <title>How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201283#M39825</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;We encounter Splunk server running out of disk space issue in past months.  I tried to reduce maxTotalDataSizeMB and frozenTimePeriodInSecs from time to time for squeezing disk space.  Currently it looks like the following:&lt;/P&gt;

&lt;P&gt;------------ cut here ---------------&lt;BR /&gt;
[main]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;maxTotalDataSizeMB = 20000
coldToFrozenDir = /usr/local/splunk/var/frozen/main
frozenTimePeriodInSecs = 864000

[p0f]
maxTotalDataSizeMB = 20000
coldToFrozenDir = /usr/local/splunk/var/frozen/p0f
frozenTimePeriodInSecs = 432000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;------------ cut here ---------------&lt;/P&gt;

&lt;P&gt;Seems default of frozen data processing is to delete them.  However, raw data is still there and eats up a lot of disk space, e.g.  in &lt;CODE&gt;/usr/local/splunk/var/frozen/p0f&lt;/CODE&gt; for the p0f index, there are log of db_* folders:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ls -l db_1415393077_1415384845_1994/rawdata/
total 112132
-rw-------. 1 splunk splunk 114815328 Nov  8  2014 journal.gz
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I daren’t deleting them manually.&lt;BR /&gt;&lt;BR /&gt;
Would anyone please help?  Sorry for the newbie question.&lt;/P&gt;

&lt;P&gt;Thanks and regards&lt;BR /&gt;
/ST Wong&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 09:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201283#M39825</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2015-12-28T09:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201284#M39826</link>
      <description>&lt;P&gt;Yes, the default action is to delete frozen data.  However, by specifying a value for coldToFrozenDir you have changed the default behaviour so Splunk will retain frozen data.  Remove that attribute, restart splunkd and the frozen data will be deleted.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 13:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201284#M39826</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-12-28T13:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201285#M39827</link>
      <description>&lt;P&gt;If you set the &lt;STRONG&gt;coldToFrozenDir&lt;/STRONG&gt; attribute in indexes.conf, the indexer will automatically copy frozen buckets to the specified location before erasing the data from the index. So the data still resides on the location you specified on the disk.&lt;/P&gt;

&lt;P&gt;If you don't specify either of these attributes(coldToFrozenDir or coldToFrozenScript), the indexer runs a default script that simply writes the name of the bucket being erased to the log file $SPLUNK_HOME/var/log/splunk/splunkd_stdout.log. It then erases the bucket.&lt;/P&gt;

&lt;P&gt;Reference : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Indexer/Automatearchiving" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1511/Indexer/Automatearchiving&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201285#M39827</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-29T08:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201286#M39828</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Thanks for your help.  It works.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 01:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201286#M39828</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2015-12-29T01:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201287#M39829</link>
      <description>&lt;P&gt;Please accept this as answer if you are happy so that question will be closed and might be useful for others.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 05:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201287#M39829</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-29T05:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201288#M39830</link>
      <description>&lt;P&gt;Hi @stwong&lt;/P&gt;

&lt;P&gt;Please be sure to resolve your posts by clicking Accept directly below the answer that best answered your question. That will make this post easier to find for other users with the same/similar question.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 22:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201288#M39830</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-01-05T22:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete raw data files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201289#M39831</link>
      <description>&lt;P&gt;Noted and thanks.  Seems can only accept the "best" one even I find all the replies are helpful...&lt;BR /&gt;
Thanks for your reminder.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-delete-raw-data-files/m-p/201289#M39831</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2016-01-06T01:01:54Z</dc:date>
    </item>
  </channel>
</rss>

