mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-25 13:44:51 +00:00
28 lines
840 B
Text
28 lines
840 B
Text
|
[id='viewing-logs']
|
||
|
= Viewing logs
|
||
|
|
||
|
Log files contain messages about the system, including the kernel, services, and applications running on it. There are different log files for different information. For example, there is a default system log file, a log file for security messages, and a log file for cron tasks.
|
||
|
|
||
|
[id='locating-log-files']
|
||
|
== Locating log files
|
||
|
|
||
|
Most log files are located in the `/var/log/` directory.
|
||
|
|
||
|
`Rsyslog` is a system utility that provides support for logging. To install the _rsyslog_ package:
|
||
|
----
|
||
|
$ sudo dnf install rsyslog
|
||
|
----
|
||
|
To view a list of log files maintained by the related daemon, `rsyslogd`, enter the following command:
|
||
|
----
|
||
|
$ less /etc/rsyslog.conf
|
||
|
----
|
||
|
|
||
|
[id='viewing-log-files']
|
||
|
== Viewing log files
|
||
|
|
||
|
In Fedora, there are two ways to open the log files:
|
||
|
|
||
|
* The command line
|
||
|
|
||
|
* A GUI application
|