Hi all,
I have a question regarding how Logstash, when reading directly from files.
Here is my input pluging conf:
input {
file {
path => "/data/sbc/elkdev/*"
start_position => "beginning"
discover_interval => 300
ignore_older => 1800
}
}
As far I understand Logstash will ignore files whose modification date is 30 min older... Only files that are new or have been modified in the last 30 minutes will be taken into account.
In addition, will check the files every 5 minutes. Is my interpretation correct?
In my scenario I have two or three new files every 30 min (those files once copied are not further modified). So, if my interpretation is correct Logstash will have only 2 or 3 logs files opened at the same time.
But If I inspect the list of open files (using the lsof command) I see that Logstash maintains older files than the ones in the last 30 min.
What I'm doing/interpreting wrong?
Thank you!
Regards
Ana