Reviewing Syslog Files: Guided Exercise
Reviewing Syslog Files: Guided Exercise
Reviewing Syslog Files: Guided Exercise
Guided Exercise
Outcomes
You should be able to configure the service to write all log messages with the
priority to the log file.
This configuration line catches syslog messages with any facility and a or
above priority level. The service will write the matching messages to the
file. The wildcard ( ) in the or
fields of the configuration line indicates any facility or priority.
RH199-RHEL8.2-en-1-20200928
Chapter 11 | Analyzing and Storing Logs
3. Verify that all the log messages with the priority appears in the
file.
3.1. Use the command with the option to generate a log message with the
facility and the priority.
3.2. Use the command to view the last ten log messages from the
file and confirm that you see the
message among the other log messages.
Finish
On , run to complete this exercise. This script
ensures that the environment is restored back to the clean state.
RH199-RHEL8.2-en-1-20200928