# Logstash can't read some files

**URL:** <https://discuss.elastic.co/t/logstash-cant-read-some-files/143847>\
**Category:** Logstash\
**Created:** [August 10, 2018, 9:46am UTC](https://discuss.elastic.co/t/logstash-cant-read-some-files/143847 "2018-08-10T09:46:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alicia1](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@alicia1](https://discuss.elastic.co/u/alicia1)\
**Post date:** [August 10, 2018, 9:46am UTC](https://discuss.elastic.co/t/logstash-cant-read-some-files/143847/1 "2018-08-10T09:46:25Z")

</div>

Hello,

We have 3 files log csv in a repository (windows), but 2 of them can't be read by logstash (6.2.4), the msg logstash is like this:

[WARN][filewatch.tailmode.processor] \>\>\> Rotation In Progress - inode change detected and original content is not fully read, file is closed and path points to new content {"watched\_file details"=\>"\<FileWatch::WatchedFile: @filename='Erreur.csv', @state='rotation\_in\_progress', @recent\_states='[:watched, :watched]', @bytes\_read='0', @bytes\_unread='0', current\_size='2716', last\_stat\_size='2716', file\_open?='false', @initial=false, @sincedb\_key='unknown 0 0'\>"}

The config logstash is:  
input {  
file {  
path =\> "C:/log/\*/1/Error.csv"  
sincedb\_path =\> "C:/logstash/data/.log1.sincedb"  
codec =\> plain { charset =\> "US-ASCII"}  
start\_position =\> "beginning"  
}

```
file {
	path => "C:/log/*/1/Error1.csv"
	sincedb_path => "C:/logstash/.log2.sincedb"
	codec => plain { charset => "US-ASCII"}
	start_position => "beginning"
		}
		
file {
	path => "C:/log/*/1/Error2.csv"
	sincedb_path => "C:/logstash/data/.log3.sincedb"
	start_position => "beginning"
		}
		
	}

```

I have already delete all sincedb file and clear cache in ES.

Any ideas about this error?

Thanks.

---

<div class="post-metadata">

**Author:** ![alicia1](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@alicia1](https://discuss.elastic.co/u/alicia1)\
**Post date:** [August 10, 2018, 12:49pm UTC](https://discuss.elastic.co/t/logstash-cant-read-some-files/143847/2 "2018-08-10T12:49:11Z")

</div>

When we stop the logstash, the content of the sincedb file is:

unknown 0 0 0 1533904766.241 C:/log/1/1/Error.csv

How can we fix this issue?

Thanks.

---

<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:** [September 7, 2018, 12:49pm UTC](https://discuss.elastic.co/t/logstash-cant-read-some-files/143847/3 "2018-09-07T12:49:23Z")

</div>

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