4

syslog. , , , .

. , , . , .

, syslog, . Windows , , Linux.

, :

, , , . . :

. 

Linux , 20 . .

Windows, 3 - , . Linux 8 , :

  • Emergency
  • Alert
  • Critical
  • Error
  • Warning
  • Notice
  • Info
  • Debug

:

, cat /etc/syslog.conf (CentOS 5) , . , . rsyslog, , , Ubuntu 20.04 /etc/rsyslog.d/ 50-default.conf

50-default.conf

. . , kern.* /var/log/kern.log. * , . kern.info kern.debug, /dev/console.

*.info; *.=notice;*.=warn;\ - /var/log/messages, , .

auth,authpriv.* /var/log/auth.log, , , /var/log/auth.log, , . .

mail.* -/var/log/mail.log, , /var/log/mail.log.

, - . , , . , . . , . , , , .

cat, , less tail. tail -f , . :

less [] [_]
tail [] [_]

.

, - lnav. - apt install lnav -y.

- lnsv [] [_]

lnav dmesg
lnav dmesg

. .


50% Merion Academy