<?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: Indexing the same file twice in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146589#M29869</link>
    <description>&lt;P&gt;Many thanks for the reply !!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2013 18:06:59 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2013-11-18T18:06:59Z</dc:date>
    <item>
      <title>Indexing the same file twice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146586#M29866</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have an index called "XYZ" and in it i have a file called "abc.txt" and I am taking the help of a configuration file to import "abc.txt" in splunk automatically. Now , I have by mistaken copied it twice in the same location where my splunk pics up the data "abc.txt" for indexing. Now, I am getting double of data, plz help me to delete the data which had been indexed twice. My Index is still showing the duplicate data even after removing the duplicate file from the location.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Abhay&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:21:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146586#M29866</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2013-11-18T17:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing the same file twice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146587#M29867</link>
      <description>&lt;P&gt;Once the data is index it will stay there unless you delete it, and even then it is still there, but you can't see it.&lt;/P&gt;

&lt;P&gt;You can remove the duplicate data with the delete command.&lt;BR /&gt;&lt;BR /&gt;
Create a search that give you results that exactly match the data you want to delete, and then add delete at the end of the search and re-run it.  This time the search will execute as before, but instead of showing you results it will delete the data from the index.&lt;/P&gt;

&lt;P&gt;You can read about the delete command here:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Delete"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Delete&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 17:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146587#M29867</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-18T17:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing the same file twice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146588#M29868</link>
      <description>&lt;P&gt;Since you copied your abc.txt file to same location, it must have gotten renamed (to abc_copy.txt or something similar). Execute following command to delete the duplicate data.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XYZ source=abc_copy.txt | delete
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The user which will execute this search should have 'can_delete' capabilities added.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146588#M29868</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-11-18T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing the same file twice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146589#M29869</link>
      <description>&lt;P&gt;Many thanks for the reply !!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146589#M29869</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2013-11-18T18:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing the same file twice</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146590#M29870</link>
      <description>&lt;P&gt;Many Many thanks for demonstrating me the whole scenario.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2013 18:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-the-same-file-twice/m-p/146590#M29870</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2013-11-18T18:07:42Z</dc:date>
    </item>
  </channel>
</rss>

