linux_wiki:locate_and_interpret_system_log_files_and_journals

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:locate_and_interpret_system_log_files_and_journals [2016/03/01 22:35]
billdozor [Traditional Log Files]
linux_wiki:locate_and_interpret_system_log_files_and_journals [2018/03/17 15:45]
billdozor [Turn Journal Persistent]
Line 101: Line 101:
 To make the journal persistent: To make the journal persistent:
  
-  * Create a journal directory in /var/log +  * Create a journal directory in /var/log<code bash>mkdir /var/log/journal</code>
-    * <code bash>mkdir /var/log/journal</code>+
   * Make systemd-journal the group owner and set GID permissions   * Make systemd-journal the group owner and set GID permissions
     * Option 1:<code bash>systemd-tmpfiles --create --prefix /var/log/journal</code>     * Option 1:<code bash>systemd-tmpfiles --create --prefix /var/log/journal</code>
     * Option 2:<code bash>chown :systemd-journal /var/log/journal     * Option 2:<code bash>chown :systemd-journal /var/log/journal
 chmod 2750 /var/log/journal</code> chmod 2750 /var/log/journal</code>
-  Restart the journal service +    **Hint**: Check the /run/log/journal directory ownership and permissions. Make /var/log/journal the same. 
-    * <code bash>systemctl restart systemd-journald</code>+ 
 +  Restart the journal service<code bash>systemctl restart systemd-journald</code>
  
 ---- ----
  
  • linux_wiki/locate_and_interpret_system_log_files_and_journals.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)