System logging is an important function in Linux. Without logs, troubleshooting would be much more difficult. Even _with_ logs, you’re swimming in a sea of data. Knowing how to find what you’re looking for is important. In this hands-on lab, we will cover how to locate and interpret system log files and journals. We will also examine how we can preserve system journals across reboots.
**Red Hat Exam Requirements Covered:**
– Locate and interpret system log files and journals
– Preserve system journals
*This course is not approved or sponsored by Red Hat.*
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Locate and Interpret System Log Files and Journals
- Query the journal for a number of entries
- Query the journal for a list of boot session entries, then query a particular session
- Perform simple journal queries
- Query the journal for a range of entries based on date/time
- Preserve System Journals
- Determine the settings for the journal persistence
- Create the needed directory
- Confirm the journal has been made persistent
- Ensure all entries are pushed to persistent storage