<?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 I can delete data from splunk after indexed new file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365011#M66470</link>
    <description>&lt;P&gt;You can clear the contents of the old file using something like - &lt;CODE&gt;index=&amp;lt;index name&amp;gt; source=&amp;lt;source name&amp;gt; | delete&lt;/CODE&gt; and then index the new file. It's doable... &lt;/P&gt;</description>
    <pubDate>Fri, 05 May 2017 15:21:40 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-05-05T15:21:40Z</dc:date>
    <item>
      <title>How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365009#M66468</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a CSV file in my folder on pc that is updated every day.&lt;BR /&gt;
I want to use always the most up-to-date csv file.&lt;BR /&gt;
I tried to use the monitor option but if the next days the csv is updated the old one remain in my splunk data.&lt;/P&gt;

&lt;P&gt;Can I use only one csv file and not the sum of old csv?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 12:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365009#M66468</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-05-05T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365010#M66469</link>
      <description>&lt;P&gt;Once data is indexed by Splunk it cannot be deleted or removed until it expires.&lt;BR /&gt;
You probably should modify your query to search for only the most recent data.  Post your query and we may be able to help.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 14:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365010#M66469</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-05T14:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365011#M66470</link>
      <description>&lt;P&gt;You can clear the contents of the old file using something like - &lt;CODE&gt;index=&amp;lt;index name&amp;gt; source=&amp;lt;source name&amp;gt; | delete&lt;/CODE&gt; and then index the new file. It's doable... &lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:21:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365011#M66470</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-05-05T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365012#M66471</link>
      <description>&lt;P&gt;I use for every csv the same index. So using monitor option, if my csv file is updated I will have the new csv on my splunk but I will have also the old one that are, in part, similar to the previous one.&lt;/P&gt;

&lt;P&gt;I want, using the same index, that every day I work only with the latest up-to-date csv file&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365012#M66471</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-05-05T15:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365013#M66472</link>
      <description>&lt;P&gt;Consider writing CSV to a KV Store collection every day.  Each update will replace the existing date so there will only one day of data in the store.  Then your search just needs to do a &lt;CODE&gt;inputlookup&lt;/CODE&gt; to get the day's data.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 19:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365013#M66472</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-05T19:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365014#M66473</link>
      <description>&lt;P&gt;My problem is that if I upload a new file with the same name of the old one, splunk summarize the data so I have many duplicate data.&lt;BR /&gt;
For example: yesterday I uploaded a csv with 10 events, today I upload the same csv file but with 11 events (10 events equal to the yestarday's file and 1 new events). &lt;BR /&gt;
I want to see only 11 events and not the sum of the two files (21 events)&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 14:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365014#M66473</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-05-08T14:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How I can delete data from splunk after indexed new file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365015#M66474</link>
      <description>&lt;P&gt;If you're simply adding new events to the same file, rather than completely replacing the CSV, tell Splunk to monitor that file and it will only read the newest events.  That should avoid duplicates.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 17:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-I-can-delete-data-from-splunk-after-indexed-new-file/m-p/365015#M66474</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-05-09T17:39:20Z</dc:date>
    </item>
  </channel>
</rss>

