Skip to content
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: provide a journal distinction per unit file / service for vacuum / disk-size #4751

Open
1 task
docent-net opened this issue Nov 27, 2016 · 1 comment
Labels
journal RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@docent-net
Copy link

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.

@poettering poettering added journal RFE 🎁 Request for Enhancement, i.e. a feature request labels Nov 28, 2016
@stokito
Copy link

stokito commented Oct 18, 2021

Just for the record: TODO has a corresponding item

systemd/TODO

Line 502 in 6123382

- journald: allow per-priority and per-service retention times when rotating/vacuuming

Also there is a discussion https://unix.stackexchange.com/questions/296453/how-to-configure-per-unit-log-storage-policy-with-journald

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
journal RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

3 participants