<?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: Automatically remove events older than one year in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58142#M11386</link>
    <description>&lt;P&gt;see update, lemme know if it helps or not&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2011 15:23:11 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-08-19T15:23:11Z</dc:date>
    <item>
      <title>Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58137#M11381</link>
      <description>&lt;P&gt;I have a requirement to have data older than one year removed from Splunk. By "older than year", I mean the &lt;EM&gt;event&lt;/EM&gt; has to be older than one year, not necessarily when it was indexed. &lt;/P&gt;

&lt;P&gt;In my indexes.conf file, I set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[main]
frozenTimePeriodInSecs = 31536000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;31536000 seconds should be one year.&lt;/P&gt;

&lt;P&gt;And yet it's showing the earliest events (185,000 of them) as July 18, 2010 (today is August 15, 2011). It was my expectation that the earliest event would be August 15, 2010. Tomorrow's earliest event would be August 16, 2010, etc...&lt;/P&gt;

&lt;P&gt;How can I instruct Splunk to automatically purge events older than one year?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:19:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58137#M11381</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2011-08-15T15:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58138#M11382</link>
      <description>&lt;P&gt;Splunk removes (freezes) data whole buckets at a time.  It can't freeze the bucket until the newest event within the bucket is older than &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt;.  You could use the &lt;CODE&gt;dbinspect&lt;/CODE&gt;  search command ( &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Dbinspect&lt;/A&gt; ) to examine your buckets and evaluate how large of a time range the bucket covers.  That will give you an idea at least of how long past a year you can expect the OLDEST event in the bucket to stick around.&lt;/P&gt;

&lt;P&gt;By default, buckets are limited by a time range (&lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt;) and a bucket data size &lt;BR /&gt;
(&lt;CODE&gt;maxDataSize&lt;/CODE&gt;).  If either of these are exceeded, you splunk will roll the bucket from hot to warm.  &lt;/P&gt;

&lt;P&gt;You could tune the value of &lt;CODE&gt;maxHotSpanSecs&lt;/CODE&gt; to be the shortest amount of time you might consider doing archiving - say 1 day (86,400 seconds).  You still will not get &lt;STRONG&gt;exact&lt;/STRONG&gt; archiving - but you minimize how long "archivable" stays around simply because it exists in a bucket that has much newer data in it as well.&lt;/P&gt;

&lt;P&gt;If you need more a more precise archiving capability -- say something that makes you able to stand up to lawyer scrutiny -- then I would suggest an enhancement request.  &lt;/P&gt;

&lt;P&gt;The whole notion of buckets and such is understandably difficult to relate to less technical people.  A good analogy for explaining to your nontechnical people would be the paper banker's boxes.  Each banker's box has a range of dates written on the box -- and without going through the whole box you can't discard individual documents.  So, you have to keep some things in the box a little longer than you might have wanted just because they're in the same box as something a few days newer.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58138#M11382</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-08-15T15:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58139#M11383</link>
      <description>&lt;P&gt;So are you saying there's no real way to do it? I was hoping for precise "1 year" cut-off.&lt;/P&gt;

&lt;P&gt;I'm playing around with dbinspect like you suggested, but it only outputs "no events found"; not sure what I'm supposed to get out of it.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 15:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58139#M11383</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2011-08-15T15:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58140#M11384</link>
      <description>&lt;P&gt;Precise-to-the-minute, no.  &lt;EM&gt;IF&lt;/EM&gt; you can plan your bucket boundaries well, then you can get pretty close -- like rounded to the day.  For dbinspect, run a search over all time of "| dbinspect index=main"&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 16:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58140#M11384</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-08-15T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58141#M11385</link>
      <description>&lt;P&gt;Got dbinspect to work.... honestly, I'm not quite sure what to do with the information there. &lt;BR /&gt;
It seems like there has to be an easier way to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 14:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58141#M11385</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2011-08-17T14:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically remove events older than one year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58142#M11386</link>
      <description>&lt;P&gt;see update, lemme know if it helps or not&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2011 15:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-remove-events-older-than-one-year/m-p/58142#M11386</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-08-19T15:23:11Z</dc:date>
    </item>
  </channel>
</rss>

