# Logstash - File Input - Read Status File

**URL:** <https://discuss.elastic.co/t/logstash-file-input-read-status-file/24408>\
**Category:** Logstash\
**Created:** [June 26, 2015, 8:58am UTC](https://discuss.elastic.co/t/logstash-file-input-read-status-file/24408 "2015-06-26T08:58:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Tieben](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/florian_tieben/32/3483_2.png) [@Florian\_Tieben](https://discuss.elastic.co/u/Florian_Tieben)\
**Post date:** [June 26, 2015, 8:58am UTC](https://discuss.elastic.co/t/logstash-file-input-read-status-file/24408/1 "2015-06-26T08:58:25Z")

</div>

Hallo there,

I'm trying to read a status csv file with the file input plugin. This file has just one line and is rewritten every 5 Minutes.

Example:  
0,0,0,0,2453,2453,0,0

The configlines:

file {  
path =\> "/path/to/\*check.csv"  
type =\> "DB2"  
codec =\> plain { charset =\> "ISO-8859-1" }  
}

How can I get logstash to reread the single line? I've tested a SinceDB Path pointed to /dev/null but that didn't worked.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 30, 2015, 9:39am UTC](https://discuss.elastic.co/t/logstash-file-input-read-status-file/24408/2 "2015-06-30T09:39:43Z")

</div>

You trying to use the file input for something it isn't intended to do. Try using the [exec input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-exec.html) instead.

---

<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:** [July 6, 2017, 5:36am UTC](https://discuss.elastic.co/t/logstash-file-input-read-status-file/24408/3 "2017-07-06T05:36:00Z")

</div>


