I'm trying to input the file which name is same for everytime
It reads well but I'd like to output only the last line appended in that time
my pipeline configuration is here
input {
file{
path => "/home/lisa/elasticstack/data_store/hmi/hmi.csv"
start_position=>"beginning"
type => "hello"
}
}
filter {
if [type] == "hello" {
csv{
separator=>","
columns=>["message number","timestamp","state","message text"]
}
grok { match => [ "path", "/(?[^/]+).csv" ] }
}
}
output {
stdout { codec => rubydebug }
}
the problem is it reads and ouput whole content of overwritten file..
I just want to use only appended last line
Is there any way to use overwritten file(only appended but overwritten) in this case?..
Best Regards