Skip to content

Instantly share code, notes, and snippets.

@tranthamp
Created May 5, 2014 16:48
Show Gist options
  • Save tranthamp/c3b6db0459d28f11d920 to your computer and use it in GitHub Desktop.
Save tranthamp/c3b6db0459d28f11d920 to your computer and use it in GitHub Desktop.
# Edit /etc/systemd/journal.conf and set the following options to prevent the creation of .journal files and to forward messages to syslog:
Storage=none
ForwardToSyslog=yes
# Check if syslog.service is a sym-link to /dev/null and remove it if so
$ ls -l /lib/systemd/system/syslog.service
$ rm /lib/systemd/system/syslog.service
# Unmask the syslog service so that it can be started
$ systemctl unmask syslog.service
# Start the syslog service (or just reboot)
$ /etc/init.d/syslog start
# All system messages should now show up in /var/log/messages
$ tail /var/log/messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment