Re: how to correctly log without journald (and its blobs)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux