Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logs: Use journalctl -o with-unit for default logs #3346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 21, 2023

  1. logs: Use journalctl -o with-unit for default logs

    Before systemd was created, syslog was the dominant Unix logging
    system.
    
    Later, systemd introduced the journal whose output intentionally
    exactly matched that of syslog for compatibility.
    
    In systemd, the "unit" is the technical heart of things; yet
    the syslog output only includes the "syslog identifier" which
    might or might not look like the unit.
    
    For many units that just run shell script, the syslog
    identifier is just "bash" which is not useful.
    
    The `-o with-unit` is in RHEL8 and above; it's not in RHEL7.  I don't
    know if it is a goal of this project to ship the latest releases
    on very old operating systems.  If it is, we can try to do dynamic
    detection.
    
    Signed-off-by: Colin Walters <[email protected]>
    cgwalters committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    375983f View commit details
    Browse the repository at this point in the history