Hello, I am not sure about Logstash's behaviour when faced with the following example:
Suppose you have a file with > 100 lines of input. Logstash indexes this and the file is removed. What will logstash do if the same file name is created again, now with new content? The time period between the deletion and the creation could be from minutes to days.
If you are on a filesystem that uses inode generation numbers then as Christian says, the inode will certainly be different. However, there are filesystems where a new file will just re-use the next available inode number, and then a file input will think it is the same file and expect to continue reading it from the last offset it read from.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.