<?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 What are different ways of clearing an index automatically on the last day of the month? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167415#M33875</link>
    <description>&lt;P&gt;We want to clear the index on the last day of the month and load the index with new data on the first of every month.&lt;BR /&gt;
What would be different ways to clear the index automatically on the last day of the month?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2015 17:56:28 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2015-08-12T17:56:28Z</dc:date>
    <item>
      <title>What are different ways of clearing an index automatically on the last day of the month?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167415#M33875</link>
      <description>&lt;P&gt;We want to clear the index on the last day of the month and load the index with new data on the first of every month.&lt;BR /&gt;
What would be different ways to clear the index automatically on the last day of the month?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 17:56:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167415#M33875</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-08-12T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: What are different ways of clearing an index automatically on the last day of the month?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167416#M33876</link>
      <description>&lt;P&gt;Below link from the Splunk document describes various ways a data for index can be removed. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Indexer/RemovedatafromSplunk#Remove_data_from_one_or_all_indexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Indexer/RemovedatafromSplunk#Remove_data_from_one_or_all_indexes&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;The best one is "clean" command from Splunk CLI as it can be automated. Note that it doesn't work in clustered environment. &lt;/P&gt;

&lt;P&gt;For scheduling to last day of month, there is no direct cron available in SPlunk to do that but you can run a search daily, check if the current date is last day of month, if yes then as an alert action run your script for cleanup indexed data.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 18:44:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167416#M33876</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-12T18:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: What are different ways of clearing an index automatically on the last day of the month?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167417#M33877</link>
      <description>&lt;P&gt;We have a 3 node index cluster in prod and this will eventually be moved to prod.&lt;BR /&gt;
by creating a report with delete option and scheduling the job to run on the last day, will that work in a cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 19:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167417#M33877</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2015-08-12T19:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: What are different ways of clearing an index automatically on the last day of the month?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167418#M33878</link>
      <description>&lt;P&gt;If you have a 3 node index cluster in prod and you create a report that ends with the &lt;CODE&gt;delete&lt;/CODE&gt; option and schedule the job to run on the last day, it will definitely &lt;CODE&gt;delete&lt;/CODE&gt; all copies of the data and it will not appear in any search results after that.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 23:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/What-are-different-ways-of-clearing-an-index-automatically-on/m-p/167418#M33878</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-12T23:31:18Z</dc:date>
    </item>
  </channel>
</rss>

