Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-request: remove record from sincedb if file was deleted #81

Open
ov7a opened this issue Jul 8, 2016 · 1 comment
Open

Feature-request: remove record from sincedb if file was deleted #81

ov7a opened this issue Jul 8, 2016 · 1 comment

Comments

@ov7a
Copy link

ov7a commented Jul 8, 2016

Motivation:
If multiple files are processed, it seems what record is left in since_db. If the record with be removed since_db will occupy less space, which would be nice if a lot of files are processed.

@guyboertje
Copy link
Contributor

guyboertje commented Jul 8, 2016

@ov7a - Thanks for your feature request.

Some form of this feature is already implemented in pull request #79. This feature is aligned somewhat with the Filebeat handling of the same issue. When we update the sincedb record we change the last_seen_at timestamp. Then periodically we will sweep through the sincedb records and remove them if they were last seen before than a user defined time ago. We need to do it this way because a file can be reintroduced and we would have no record of it. The user should decide what a reasonable timeframe for retention.

Unfortunately the PR is delayed because of its complexity and other team duties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants