课程: Linux: Kernels and Logging for System Administration

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Rsyslog configuration

Rsyslog configuration

- [Instructor] Log files are files that contain messages about the system. These messages can pertain to the kernel, services, or applications. There are different logs for different processes and services and are a great source of information about the running system. In order to read the logs provided by rsyslog, you need to find them first. To view the rsyslog.conf file using less with line number turned on, type in less capital N /etc/rsyslog.conf and hit enter, and then scroll down to line 40. These are the rules specifying where each type of message will be logged. These single line rules are what is called basic format. For advanced logging, there is also an advanced format that is multiline, has conditionals and looks more like a programming language. For this course, we'll focus on basic format because it works in most logging scenarios. Just be aware that advanced format exists and provides a lot more power for complex configurations. There are two columns in a rule, the…

内容