From the course: Linux: Kernels and Logging for System Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

View system log files

View system log files - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

View system log files

- [Instructor] Log files are files that contain messages about the system. These messages would pertain to the kernel, services or applications. There are different logs for different tasks. For instance, there's a log that keeps track of failed logins. There's another log just for cron jobs and so on. Enterprise Linux 7 has two logging systems, rsyslog and journald. rsyslog is compatible with sysklogd and handles persistent logs. syslog are the logs to text files on the local machine, or it logs across the network to a remote logging server using either TCP or UTP protocols. journald, however, is part of systemd and is not persistent by default, so the journal logs don't survive a reboot. Since the journal is binary and it's only stored in memory, it's very fast to write to and very fast to search. To ensure rsyslog is running, we can use systemctl. In a terminal type in, sudo systemctl start rsyslog and hit enter. Type in your password and hit enter again. To make it persistent, we…

Contents