Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2462

Raspberry Pi OS • How do I disable all logging in rpi os 64bit (Bookworm)?

$
0
0
I updated my rpi 4, after 3 years. I used to disable logging using

Code:

sudo systemctl stop rsyslog && sudo systemctl disable rsyslog
But, I found out that this new 64 bit version deprecated rsyslog and using systemd-journald. So I tried to disable that too using again

Code:

sudo systemctl disable systemd-journald&&sudo systemctl status systemd-journald
But, seems like still reactivated by another process. Then I found this: https://raspberrypi.stackexchange.com/ ... sable-logs. Nice article, and I changed the "/etc/systemd/journald.conf" to

Code:

Storage=volatileRuntimeMaxUse=16M
But I still find that

Code:

1.4M    /run/log/journal25M     /var/log/journal
I also changed the logrotat.conf to "nocreate" & "nocreateolddir"
How can I stop log writing to my SD card? I actually never used logs, nor did I need it before. My rpi is just a headless unit running some containers and a good SD card is really hard get from where I live. Any suggestion will be highly appreciated.

Statistics: Posted by sohojmanush — Fri Aug 02, 2024 10:02 pm



Viewing all articles
Browse latest Browse all 2462

Trending Articles