You are not logged in.
Pages: 1
Topic closed
Hi!
As one of my Archs sits on a rather small SSD I'm concerned about space. The system in question is a NAS that is on 365*7*24. I've found out that systemd generates quite some (nice) journal logs. But in my case i'm really not interested in what happened longer than a few weeks ago. I've found however that /var/log/journal is close to 250MB yet the settings in journal.conf should confine it to a much smaller value. As the journal.conf settings are quit obtuse certainly how they interact I'm a bit lost here. This is my journal.conf
/etc/systemd/journal.conf
[Journal]
Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=login
#RateLimitInterval=10s
#RateLimitBurst=200
SystemMaxUse=10M
SystemMaxFileSize=1M
MaxRetentionSec=100 day
MaxFileSec=1 week
ForwardToSyslog=no
#ForwardToKMsg=no
#ForwardToConsole=no
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
I assumed that by setting SystemMaxUse to 10M not more that 10M will be used by systemd. Or am I mistaken?
What would be the settings to only keep 2 weeks of log in all log files?
archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR
Offline
The filename should be /etc/systemd/journald.conf.
Offline
Shouldn't that be journald.conf, not journal.conf? Have you looked at man journald.conf?
Offline
Thanks for responding and sorry to have confused you there. Yes, the file is called journald.conf not journal.conf. I made a typo in my message.
How can I reduce the size to only keep 2 weeks worth of logging. It seems that the documentation is not accurate (having specified a 10M systemmaxuse and over 240M of journal log)
archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR
Offline
What's the output of 'sudo journalctl --disk-usage'?
Offline
Old thread about this issue:
https://bbs.archlinux.org/viewtopic.php?pid=1201128
Last edited by teateawhy (2014-03-15 14:17:25)
Offline
I think the issue has been resolved: https://bbs.archlinux.org/viewtopic.php … 8#p1350008
Offline
# journalctl --disk-usage
Archived and active journals take up 16.0M on disk.
archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR
Offline
Sooo ... is it solved?
Offline
What's the output of 'sudo journalctl --disk-usage'?
# sudo journalctl --disk-usage
Archived and active journals take up 12.0M on disk.
journald.conf
[Journal]
Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=login
#RateLimitInterval=10s
#RateLimitBurst=200
SystemMaxUse=1M
RuntimeMaxUse=1M
SystemMaxFileSize=1M
MaxRetentionSec=100 day
MaxFileSec=1 week
ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
12M > 1M
Last edited by theking2 (2015-01-18 14:58:34)
archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR
Offline
Do you maybe have leftover files (files with a tilde, "~") under /var/log/journal/<some_hash>/... ?
It's mentioned in the thread linked in post #6.
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
12M > 1M
You have to wait until the old journal files get removed or do it yourself.
Offline
What is a reasonable size to set for the "SystemMaxUse" line in journald.conf?
I see people mentioning various sizes (16M, 50M), but have not seen any comments about whether those are reasonable limits?
And are there any downsides to a setting that's too small? Is there any rule of thumb for what one might want the limit to be?
Offline
cb474 => Please don't hijack threads. Start your own, it's free
Closing.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1
Topic closed