journald: provide a journal distinction per unit file / service for vacuum / disk-size
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 16.7k
- Forks
- 4.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 140
Description
Submission type
- Bug report
- [X ] Request for enhancement (RFE)
NOTE: Do not submit anything other than bug reports or RFEs via the issue tracker!
systemd version the issue has been seen with
231
NOTE: Do not submit bug reports about anything but the two most recently released systemd versions upstream!
Used distribution
Fedora 25
The idea is that user might be able to run journalctl --disk-size -u some.service and also journalctl --vacuum-size=100M -u some.service.
The expected behavior would be in the first case showing size of journal that was taken by specified service. In the latter one expected behavior would be vacuuming size of choosen service up to 100Mb
Case is that when having multiple services running on same host, sometimes we'd like to enable more rich logging for one service (e.g. for live debugging session). After debugging session is done we'd like to clean-up journal to free disk - space; but we're interested only in recovering disk - space taken by those very logs from debugging session to make sure that other's services logs are not affected by vacuum in the nearest future.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the journalctl --disk-size -u and --vacuum-size=100M -u behaviors described in the issue, and inspect how unit filtering and journal size or vacuum operations are currently handled. Done means reporting journal size for the selected service and limiting cleanup to that service without affecting other services.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- observability, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100