Logstash fetched duplicate data from XML file

LS always fetches old data from XML file whenever it runs. Below is my configuration. Due to that I see duplicate data entry in output. I expect from below conf LS only read updated data from file.

file {
path => "/mnt/simpleci_temp_commit.xml"
start_position => "beginning"
sincedb_path => "/mnt/bitbucket/sincedb"
codec => multiline {
pattern => "<item"
negate => "true"
what => "previous"
auto_flush_interval => 1
}
}
}

And "updated data" means "the file has been rewritten with completely new content"?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.