I found that CentOS/Redhat will not store systemd-journal log to disk, Ubuntu will.
For CentOS/Redhat, each time I reboot, the journal log were removed ( it seems write to tmpfs only )
Why CentOS/Redhat don't want to keep journal log?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI found that CentOS/Redhat will not store systemd-journal log to disk, Ubuntu will.
For CentOS/Redhat, each time I reboot, the journal log were removed ( it seems write to tmpfs only )
Why CentOS/Redhat don't want to keep journal log?
Possible duplicate, see: How do I display log messages from previous boots under CentOS 7?
Why
By default, the journal stores log data in /run/log/journal/. Since /run/ is volatile, log data is lost at reboot. To make the data persistent, it is sufficient to create /var/log/journal/ where systemd-journald will then store the data.