-
Notifications
You must be signed in to change notification settings - Fork 23
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
Journald polling #380
Journald polling #380
Conversation
Codecov Report
@@ Coverage Diff @@
## master #380 +/- ##
==========================================
- Coverage 73.28% 73.18% -0.10%
==========================================
Files 124 124
Lines 7979 7994 +15
==========================================
+ Hits 5847 5850 +3
- Misses 1633 1645 +12
Partials 499 499
Continue to review full report at Codecov.
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple minor things, but looks good.
|
Description of Changes
Instead of running journalctl as a long running process, this PR switches to a polling strategy similar to file input's design. On some platforms, journalctl has trouble following rotated files (and fails to close file handles to old files). This situation is very difficult to replicate. The band aid solution is to restart the agent, which is not ideal in a production environment such as OpenShift. By polling the journal, this situation should be avoided.
Please check that the PR fulfills these requirements