Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[plugins] Speedup journal collection
Instead of generating all the logs and tailing the last 100M, we get the first 100M of 'journalctl --reverse' that we then reverse again using tac_logs(). On journalctl timeout we now get the most recents logs where previously we were getting some random old logs. During collection, logs are now buffered on disk, so we use 2xsizelimit. Previously buffering was in RAM (also 2xsizelimit). On my test server, logs plugin runtime goes from 34s to 9.5s. Signed-off-by: Etienne Champetier <[email protected]>
- Loading branch information