Stories
Slash Boxes
Comments

SoylentNews is people

posted by martyb on Sunday April 19 2015, @06:02PM   Printer-friendly
from the with-all-this-logging-we-need-a-lumberjack dept.

World-renowned Unix master Chris Siebenmann has written an article entitled 'I wish systemd would get over its thing about syslog'. It addresses the strained relationship between the systemd init system and the traditional syslog approach to logging used on many Linux systems.

Chris writes:

Anyone who works with systemd soon comes to realize that systemd just doesn't like syslog very much. In fact systemd is so unhappy with syslog that it invented its own logging mechanism (in the form of journald). This is not news. What people who don't have to look deeply into the situation often don't realize is that systemd's dislike is sufficiently deep that systemd just doesn't interact very well with syslog.

This is a must-read article for anyone who needs to use systemd and syslog together.

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 5, Interesting) by darkfeline on Sunday April 19 2015, @08:05PM

    by darkfeline (1030) on Sunday April 19 2015, @08:05PM (#172914) Homepage

    You forgot one important fact.

    Just install rsyslog and you can have your plain text logs and eat your systemd cake too. My computer running systemd has both metadata-tagged journald logs AND plain text logs. People who bemoan journald are just looking for a reason to hate systemd when there are other VALID reasons for doing so.

    --
    Join the SDF Public Access UNIX System today!
    Starting Score:    1  point
    Moderation   +3  
       Interesting=2, Informative=1, Total=3
    Extra 'Interesting' Modifier   0  
    Karma-Bonus Modifier   +1  

    Total Score:   5  
  • (Score: 2, Informative) by frojack on Sunday April 19 2015, @08:38PM

    by frojack (1554) on Sunday April 19 2015, @08:38PM (#172925) Journal

    Believe I covered that in my second paragraph.

    --
    No, you are mistaken. I've always had this sig.
  • (Score: 2) by zocalo on Sunday April 19 2015, @08:43PM

    by zocalo (302) on Sunday April 19 2015, @08:43PM (#172926)
    Or, if you prefer, you can install your syslog daemon of choice, configure systemd to copy all it's message to that and then simply turn off systemd's journal so you don't get the binary files at all. There's probably a little extra overhead as messages get passed between the Kernel, systemd and syslog, but unless you are generating an insane level of messages at log level debug I doubt it would be noticeable. To do this, in /etc/systemd/journald.conf set:

    Storage=none
    ForwardToSyslog=yes


    Then create a file named /etc/rsyslog.d/sd-socket.conf that contains:

    $AddUnixListenSocket /run/systemd/journal/syslog
    --
    UNIX? They're not even circumcised! Savages!
    • (Score: 5, Insightful) by Anonymous Coward on Sunday April 19 2015, @09:19PM

      by Anonymous Coward on Sunday April 19 2015, @09:19PM (#172937)

      Great! So now, after only a few months, I know how to do a quick-n-dirty little hack that gets me back to only slightly less functionality than before systemd landed.