# Logstash trying to reprocess the same files

**URL:** https://discuss.elastic.co/t/logstash-trying-to-reprocess-the-same-files/317362
**Category:** Logstash
**Created:** [October 25, 2022, 4:25am UTC](https://discuss.elastic.co/t/logstash-trying-to-reprocess-the-same-files/317362 "2022-10-25T04:25:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Caetano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/victor_caetano/32/100678_2.png) [@Victor\_Caetano](https://discuss.elastic.co/u/Victor_Caetano)
#### Post date: [October 25, 2022, 4:25am UTC](https://discuss.elastic.co/t/logstash-trying-to-reprocess-the-same-files/317362/1 "2022-10-25T04:25:16Z")

</div>

I'm using File Input Plugin, and a multiline codec, and grok filters to process .txt files that exists in a folder in my Linux VM, those files are static, i don't make changes in it's content, i only add more files to this folder

But logstash tries to reprocess the content of the old files so many times, that is causing the version conflict problem

I don't know why logstash is trying to reindex the content of these files over and over again, because, like i said, i don't change anything in their content

All the files has different and unique names because all of them have the timestamp in their titles

I use action =\> "create" on my output, and the folder receive new files every 5 minutes

An unusual thing that i've noticed is that, on my sincedb file, all the files appears more than once, and also shows 2 or more different inodes for the same file

Someone has a clue on what could probably cause this problem? Logstash trying to re read unchanged files

---

<div class="post-metadata">

### Author: ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)
#### Post date: [October 25, 2022, 4:20pm UTC](https://discuss.elastic.co/t/logstash-trying-to-reprocess-the-same-files/317362/2 "2022-10-25T16:20:19Z")

</div>

What is your input code?

You should have something like this:

```auto
input {
    file {
        path => "/dir/*.log"
        start_position => beginning
        sincedb_path => ["/path/sincedb.db"]
        mode => "tail"
	}
}

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 22, 2022, 4:21pm UTC](https://discuss.elastic.co/t/logstash-trying-to-reprocess-the-same-files/317362/3 "2022-11-22T16:21:04Z")

</div>

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