Working with Log Files and Journals on RHEL 8

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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

Additional Resources

In this lab, you're the sysadmin of a server that has just been installed with the defaults and you want to ensure that all your system's journal entries from the first boot onward will always be available for your querying.

You'll investigate the current journal settings, the journal location, and then do both some simple and some more advanced queries of your existing journal to familiarize yourself with the commands and the expected outputs.

You'll then make the needed changes to ensure that your system's journal will be located in the /var/log/journal directory and be persistent across system reboots.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?