I have two directories dir1 and dir2 monitored by splunk, new files in each directory are indexed, respectively, to index1 and index2.
I realized that I made a mistake and put myfile.txt in dir1 instead of dir2. The events within were indexed to index1, which is not a problem (I will deal with them later).
I then moved the file via mv dir1/myfile.txt dir2, the move was successful, I can now see myfile.txt in dir2but the events are not visible in index2. Other files which are in this directory are indexed correctly, so indexing as it works fine.
Why moving the file did not trigger the indexing? From the standpoint of index2 these are new files and the fact that they have been previously indexed to index1 should not make any difference, right?