Logstash - File Input - Read Status File


(Florian Tieben) #1

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.


(Magnus B├Ąck) #2

You trying to use the file input for something it isn't intended to do. Try using the exec input instead.


(system) #3