Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlebon/journald-janitor
Simple systemd service to prune old journal files based on boot events
https://github.com/jlebon/journald-janitor
Last synced: about 1 month ago
JSON representation
Simple systemd service to prune old journal files based on boot events
- Host: GitHub
- URL: https://github.com/jlebon/journald-janitor
- Owner: jlebon
- License: other
- Created: 2015-11-30T16:42:48.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T15:26:23.000Z (almost 9 years ago)
- Last Synced: 2023-02-26T12:51:49.004Z (over 1 year ago)
- Language: Shell
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Currently there is no way to natively set up journald so
that logs are pruned based on boots. For example, you may
only want to keep journals for boot -1 and -2, not caring
about logs for older boots. This is an issue orthogonal to
time-based pruning since uptime can have various lengths.This small package simply runs a quick script on boot to
delete journal files that hold logs for boots older than a
predefined limit (MAX_BOOTS in the script).I also logged an RFE in upstream systemd for this:
https://github.com/systemd/systemd/issues/2070