Upon restarting Logstash, at times observed that Logstash duplicates the log events. Was wondering as to what would be the right way to apply start_position, sincedb_path, sincedb_write_interval configuration options.
- What happens when there are multiple files in the same location as in my example below
/home/tom/testData/*.log - What happens when the file rotation occurs like for example the
XXX.logfile is renamed toXXX-<date>.logand a newXXX.logfile is created. In this case name doesn't change, but the inode changes.
Would highly appreciate if anyone can throw some light on this.
input {
file {
path => "/home/tom/testData/*.log"
type => "log"
start_position => "beginning"
sincedb_path => "/persistent/loc"
sincedb_write_interval => 10
}
}