-
Notifications
You must be signed in to change notification settings - Fork 552
New tail_mode and stat_poll_interval settings to support not keeping file handles permanently open #4075
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
base: master
Are you sure you want to change the base?
New tail_mode and stat_poll_interval settings to support not keeping file handles permanently open #4075
Conversation
|
@david-garcia-garcia: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
|
@david-garcia-garcia: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4075 +/- ##
==========================================
+ Coverage 62.62% 62.74% +0.11%
==========================================
Files 456 459 +3
Lines 33076 33228 +152
==========================================
+ Hits 20715 20849 +134
- Misses 10240 10253 +13
- Partials 2121 2126 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/kind enhancement |
|
Thanks for the PR! We're close to releasing 1.7.4, so this won't be merged before 1.7.5. As you can see from the last few commits in the master branch, we are For reference, the journalctl datasource is already migrated and merged; syslog Since your PR is a wrapper around the tail package there shouldn't be a lot of conflicts Thanks again for your work and your patience! |
Fixes #4074
This PR adds two new configuration options:
To avoid introducing regresions, I built an abstraction to wrap the actual tail implementation depending on tail_mode. When using tail_mode the previous implementation used. When using tail_mode=stat, a new tail implementation that does not permamently keep the file handle open is used.