# Logstash \[filewatch.readmode.handlers.readfile\] opening OPEN\_WARN\_INTERVAL is '300' error in File Input Plugin

**URL:** <https://discuss.elastic.co/t/logstash-filewatch-readmode-handlers-readfile-opening-open-warn-interval-is-300-error-in-file-input-plugin/159443>\
**Category:** Logstash\
**Created:** [December 5, 2018, 2:48am UTC](https://discuss.elastic.co/t/logstash-filewatch-readmode-handlers-readfile-opening-open-warn-interval-is-300-error-in-file-input-plugin/159443 "2018-12-05T02:48:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dx123](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dx123](https://discuss.elastic.co/u/dx123)\
**Post date:** [December 5, 2018, 2:48am UTC](https://discuss.elastic.co/t/logstash-filewatch-readmode-handlers-readfile-opening-open-warn-interval-is-300-error-in-file-input-plugin/159443/1 "2018-12-05T02:48:53Z")

</div>

Below is my Logstash File Input Plugin code.

```
input {
	file {
		path => ["/Desktop/logstash_input_folder/*.json"]
	    mode => "read"
		file_completed_action => "log_and_delete"
		file_completed_log_path => "/Desktop/logstash_completed_files.txt"
		sincedb_path => "/Desktop/sincedb_file.txt"
	}
}

```

The Output is supposed to create a new index based on the input data. However I am getting this error which I've looked up online and found no solutions, I've chmod 777 both the logstash\_completed\_files.txt and the sincedb\_file.txt but the error persists. Would appreciate any help!

---

<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:** [January 2, 2019, 2:49am UTC](https://discuss.elastic.co/t/logstash-filewatch-readmode-handlers-readfile-opening-open-warn-interval-is-300-error-in-file-input-plugin/159443/2 "2019-01-02T02:49:04Z")

</div>

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