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:34]
billdozor
linux_wiki:locate_and_interpret_system_log_files_and_journals [2019/05/25 23:50] (current)
Line 35: Line 35:
   * zcat (for gzipped log files)   * zcat (for gzipped log files)
   * grep   * grep
 +
 +----
 +
 +==== Boot Process ====
 +
 +Show bootup process summary
 +<code bash>
 +systemd-analyze
 +</code>
 +
 +\\
 +Details of time each process took during boot
 +<code bash>
 +systemd-analyze blame
 +</code>
 +
 +----
  
 ==== The Journal ==== ==== The Journal ====
Line 73: Line 90:
 <code bash> <code bash>
 journalctl --since=yesterday journalctl --since=yesterday
-</code> 
- 
-\\ 
-Show bootup process summary 
-<code bash> 
-systemd-analyze 
-</code> 
- 
-\\ 
-Details of time each process took during boot 
-<code bash> 
-systemd-analyze blame 
 </code> </code>
  
Line 96: 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.1456889664.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)