Hi guys!!
I need to configure logstash to read only the newest file in folders, when I restart always read all files, and I couldn't understand why, files are in NAS, and I mount folders before start reading.
This is my last input config: (I tried with beginning.end, changing close_older and ignore_older values, tail or read mode)
input {
file {
mode => "tail"
path => "/logs/**/*.ltf"
start_position => "end"
sincedb_path => "/home/monava/db_logs"
close_older => "1h"
ignore_older => "1h"
}
}
The newest file is always writing new lines.
Could some help with this??