You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an experience with the inode recycling problem, so I changed the sincedb_clean_after value like below. sincedb_clean_after => "6 hour"
It is working fine. But 6 hours after restarting the logstash , the old record which is generated previous running is not cleaned.
The record which generated current running is cleaned normally.
I think the logstash should clean old records in the sincedb no matter when they are created.
version : logstash-7.3.0
The text was updated successfully, but these errors were encountered:
after the 6 hours, before restarting Logstash, did you still see the expired file?
after the 6 hours, if you stop Logstah witch is the content fo you sincedb file? If now you restart Logstash with --debug or --log.level trace command line switches do you see that input-file plugin discover again your expired file?
looking at the code that performs sincedb cleanup, it only happens when the sincedb is serialized to disk or when a file is opened.
In the scenario where you're working with a single event or other files being watched that aren't being written to, then the cleanup code never executes, only during specific eventst, like a shutdown.
In certain cases, in read mode sincedb is not updated.
There was no periodic check for sincedb updates that would cause the sincedb_clean_after entries to cleanup.
The cleanup relied on new files being discovered or new content being added to existing files -> causing sincedb updates.
The fix here is to periodically flush sincedb (from the watch loop).
Besides, to make the process more deterministic, there's a minor change to make sure the same "updated" timestamp is used to mark the last changed time.
resolves#250
expected to also resolve#260
I have an experience with the inode recycling problem, so I changed the sincedb_clean_after value like below.
sincedb_clean_after => "6 hour"
It is working fine.
But 6 hours after restarting the logstash , the old record which is generated previous running is not cleaned.
The record which generated current running is cleaned normally.
I think the logstash should clean old records in the sincedb no matter when they are created.
The text was updated successfully, but these errors were encountered: