<?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: I moved source data, they are not reindexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113589#M23778</link>
    <description>&lt;P&gt;Thank you very much  (I actually &lt;CODE&gt;cat&lt;/CODE&gt;'ed the ones which were copied by mistake to a new one and that new one got immediately indexed).&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2014 12:06:28 GMT</pubDate>
    <dc:creator>wsw70</dc:creator>
    <dc:date>2014-11-06T12:06:28Z</dc:date>
    <item>
      <title>I moved source data, they are not reindexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113587#M23776</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have two directories &lt;CODE&gt;dir1&lt;/CODE&gt; and &lt;CODE&gt;dir2&lt;/CODE&gt; monitored by splunk, new files in each directory are indexed, respectively, to &lt;CODE&gt;index1&lt;/CODE&gt; and &lt;CODE&gt;index2&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I realized that I made a mistake and put &lt;CODE&gt;myfile.txt&lt;/CODE&gt; in &lt;CODE&gt;dir1&lt;/CODE&gt; instead of &lt;CODE&gt;dir2&lt;/CODE&gt;. The events within were indexed to &lt;CODE&gt;index1&lt;/CODE&gt;, which is not a problem (I will deal with them later).&lt;/P&gt;

&lt;P&gt;I then moved the file via &lt;CODE&gt;mv dir1/myfile.txt dir2&lt;/CODE&gt;, the move was successful, I can now see &lt;CODE&gt;myfile.txt&lt;/CODE&gt; in &lt;CODE&gt;dir2&lt;/CODE&gt; &lt;STRONG&gt;but the events are not visible in &lt;CODE&gt;index2&lt;/CODE&gt;&lt;/STRONG&gt;. Other files which are in this directory are indexed correctly, so indexing as it works fine.&lt;/P&gt;

&lt;P&gt;Why moving the file did not trigger the indexing? From the standpoint of &lt;CODE&gt;index2&lt;/CODE&gt; these are new files and the fact that they have been previously indexed to &lt;CODE&gt;index1&lt;/CODE&gt; should not make any difference, right?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 09:49:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113587#M23776</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2014-11-06T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: I moved source data, they are not reindexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113588#M23777</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;by default Splunk doesn´t use the path of the file to identify if the file has been already indexed. You have two options, make an small modification at the beggining of the file or add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To your inputs.conf stanza.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 10:31:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113588#M23777</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2014-11-06T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: I moved source data, they are not reindexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113589#M23778</link>
      <description>&lt;P&gt;Thank you very much  (I actually &lt;CODE&gt;cat&lt;/CODE&gt;'ed the ones which were copied by mistake to a new one and that new one got immediately indexed).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2014 12:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-moved-source-data-they-are-not-reindexed/m-p/113589#M23778</guid>
      <dc:creator>wsw70</dc:creator>
      <dc:date>2014-11-06T12:06:28Z</dc:date>
    </item>
  </channel>
</rss>

