On Thu, 17 Nov 2016 15:50:24 +0100
Franta Hanzlík wrote:

> Nobody knows how to get rid of those unnecessary journald binary logs?

I can't get rid of journald, but I can reduce it to nothing more than
a proxy, relaying data to rsyslog, which then writes logs in readable text
as God intended them:

1. Make sure you install rsyslog if it isn't already.

2. Edit /etc/systemd/journald.conf and set these parameters:

Storage=none
ForwardToSyslog=yes

3. Edit /etc/rsyslog.conf and make sure
$ModLoad imuxsock
is *not* commented out.

4. Generate the /etc/rsyslog.d/listen.conf file with
$SystemLogSocketName /run/systemd/journal/syslog

5. Generate the /etc/rsyslog.d/sd-socket.conf file with
$AddUnixListenSocket /run/systemd/journal/syslog

Might as well reboot at this point. You get no more binary
logs, and everything gets forwarded to syslog.

Aside from the added bonus of readable logs, you no longer
get infinite boot loops caused by corrupt binary logs :-).
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to