<?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 do I delete old log data past a certain time on an index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363159#M66178</link>
    <description>&lt;P&gt;/opt/splunk/var/lib/splunk folder size is 200G of data.&lt;BR /&gt;
I'm assuming I manage this folder size via the Index size limit?&lt;/P&gt;

&lt;P&gt;/var/log/splunk folder size is 90G of data&lt;BR /&gt;
How should I manage this folder size? Is it safe to delete these *.log files in this folder?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 18:24:49 GMT</pubDate>
    <dc:creator>bayman</dc:creator>
    <dc:date>2017-03-21T18:24:49Z</dc:date>
    <item>
      <title>How do I delete old log data past a certain time on an index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363157#M66176</link>
      <description>&lt;P&gt;We're running out of disk space. &lt;/P&gt;

&lt;P&gt;How do I delete old log data past a certain time on an index?&lt;/P&gt;

&lt;P&gt;If I set a max index size, what happens when that limit is reached for an index?&lt;/P&gt;

&lt;P&gt;How should I rotate logs so old logs are automatically deleted?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 18:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363157#M66176</guid>
      <dc:creator>bayman</dc:creator>
      <dc:date>2017-03-21T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete old log data past a certain time on an index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363158#M66177</link>
      <description>&lt;P&gt;You can delete data directly from the file system or use the &lt;CODE&gt;clean&lt;/CODE&gt; command &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk clean eventdata -index &amp;lt;index_name&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that the &lt;CODE&gt;delete&lt;/CODE&gt; command will not delete data from the file system, it will only hide it in Splunk web&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Indexer/RemovedatafromSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you set max index size, then the oldest data that is past that max size will either be deleted or archived if you specified a frozen path when creating your index. &lt;/P&gt;

&lt;P&gt;Splunk buckets will roll from hot --&amp;gt; warm --&amp;gt; cold --&amp;gt; frozen.. I believe by default they will roll to frozen every 6 years OR until they reach the max index size&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/HowSplunkstoresindexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Indexer/HowSplunkstoresindexes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 18:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363158#M66177</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-03-21T18:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete old log data past a certain time on an index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363159#M66178</link>
      <description>&lt;P&gt;/opt/splunk/var/lib/splunk folder size is 200G of data.&lt;BR /&gt;
I'm assuming I manage this folder size via the Index size limit?&lt;/P&gt;

&lt;P&gt;/var/log/splunk folder size is 90G of data&lt;BR /&gt;
How should I manage this folder size? Is it safe to delete these *.log files in this folder?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 18:24:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363159#M66178</guid>
      <dc:creator>bayman</dc:creator>
      <dc:date>2017-03-21T18:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete old log data past a certain time on an index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363160#M66179</link>
      <description>&lt;P&gt;Yes correct, by default the max index size will be 500GB. Go to Settings&amp;gt;Index and find your index and modify the size limits&lt;/P&gt;

&lt;P&gt;I'm assuming &lt;CODE&gt;var/log/splunk&lt;/CODE&gt; is on a separate server which is being forwarded to Splunk? If so then yeah you can delete those log files as it's already been ingested by Splunk (Check before removing! A better strategy would be to zip them or move to another drive if they are important). As for log rotation, that's more of a sys-admin task rather than a Splunk task. You will either need to grow the drive or roll your logs on a regular basis&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 18:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-delete-old-log-data-past-a-certain-time-on-an-index/m-p/363160#M66179</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-03-21T18:30:33Z</dc:date>
    </item>
  </channel>
</rss>

