<?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 old date from splunk in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35046#M7089</link>
    <description>&lt;P&gt;First link has been moved to &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 06:22:50 GMT</pubDate>
    <dc:creator>chutz</dc:creator>
    <dc:date>2019-07-11T06:22:50Z</dc:date>
    <item>
      <title>how to delete old date from splunk</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35042#M7085</link>
      <description>&lt;P&gt;how to delete old date from splunk。&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 05:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35042#M7085</guid>
      <dc:creator>huabanyu8411</dc:creator>
      <dc:date>2012-04-25T05:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete old date from splunk</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35043#M7086</link>
      <description>&lt;P&gt;Provide more details for your question, please.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 06:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35043#M7086</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-04-25T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete old date from splunk</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35044#M7087</link>
      <description>&lt;P&gt;I guess you mean how do you delete old data from splunk. There are three methods of achieving this. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;To delete &lt;STRONG&gt;EVERYTHING&lt;/STRONG&gt; in an index, you need to use the clean command from the command line.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk clean eventdata -index&lt;/CODE&gt; &amp;lt;&lt;CODE&gt;indexname&lt;/CODE&gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/RemovedatafromSplunk"&gt;Remove indexed data from Splunk&lt;/A&gt; for more detail&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;To delete specific events, you need to add the "can_delete" roll to your account, search for the data to delete and then pipe to the delete command. For example from the search bar of your browser to delete &amp;lt; mydata&amp;gt; older than a year :-&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=main sourcetype=&lt;/CODE&gt;&amp;lt;&lt;CODE&gt;mydata&lt;/CODE&gt;&amp;gt; &lt;CODE&gt;latest=-1y&lt;/CODE&gt;&lt;STRONG&gt;&amp;nbsp;&lt;CODE&gt;| delete&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete"&gt;Delete command&lt;/A&gt; for more detail&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;To automatically delete data in an index older than an age, you need to set the frozenTimePeriodInSecs attribute in indexes.conf.  eg. to set the default to delete data after 1 year use :-&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[default]&lt;BR /&gt;
frozenTimePeriodInSecs = 31536000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Setaretirementandarchivingpolicy"&gt;Set a retirement and archiving policy&lt;/A&gt; for more detail&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 10:57:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35044#M7087</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2012-04-25T10:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete old date from splunk</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35045#M7088</link>
      <description>&lt;P&gt;as an aside, the delete command doesn't actually delete the logs, it jut makes them unsearchable. So if you're looking to save some disk space this might not be the best method to use.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35045#M7088</guid>
      <dc:creator>rusty009</dc:creator>
      <dc:date>2016-07-27T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete old date from splunk</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35046#M7089</link>
      <description>&lt;P&gt;First link has been moved to &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Indexer/RemovedatafromSplunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/how-to-delete-old-date-from-splunk/m-p/35046#M7089</guid>
      <dc:creator>chutz</dc:creator>
      <dc:date>2019-07-11T06:22:50Z</dc:date>
    </item>
  </channel>
</rss>

