Investigate system problems by examining journal entries and traditional log files. Filtering logs by time, service, and priority helps you quickly narrow down the root cause.
Before you begin
- You are logged in to the system.
Procedure
-
View log messages from the current boot:
-
Filter log messages by a specific time range:
$ journalctl --since "2025-07-01 08:00:00" --until "2025-07-01 12:00:00"
-
Display only error and higher-priority messages:
-
Filter messages by a specific service:
$ journalctl -u <service_name>.service -b
-
Examine traditional log files for services that do not log through the journal:
Some services store logs in subdirectories under /var/log/. For example, the httpd service uses /var/log/httpd/.
-
Follow new log entries in real time to observe ongoing issues:
Results
- Verify that the log output contains entries relevant to the issue you are investigating, such as error messages, failed service starts, or unexpected reboots.