meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:systemd:journald [2018/12/17 07:52] – niziak | linux:systemd:journald [2024/09/17 16:32] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== journald ====== | ||
Line 20: | Line 21: | ||
fprintf(stderr, | fprintf(stderr, | ||
</ | </ | ||
+ | |||
+ | ====== reduce journal size ====== | ||
+ | |||
+ | <code bash> | ||
+ | # runtime | ||
+ | sudo journalctl --vacuum-size=50M | ||
+ | |||
+ | # permanent | ||
+ | echo SystemMaxUse=50M | sudo tee -a / | ||
</ | </ | ||
+ | |||
+ | ====== read journal from custom location ====== | ||
+ | |||
+ | <code bash> | ||
+ | journalctl --directory=/ | ||
+ | journalctl --file=/ | ||
+ | </ | ||
+ | |||
+ | |||