.


:




:

































 

 

 

 


, .

4

: log-

( ) . , .

( ) /var/log/.

, .

  • /var/log/messages . , .
  • /var/log/dmesg , , .
  • /var/log/secure . . , , .
  • /var/log/audit/audit.log SELinux .
  • /var/log/yum.log yum.
  • /var/log/boot.log .
  • /var/log/httpd/ - ..

, .

# tail /var/log/messages

10 . , -n <>.

, -f:

# tail -f /var/log/messages

, . Ctrl+C.

, - , , . head, , tail.

, , . /dev/log, 514/udp /

Syslog

syslog.conf (rsyslog.conf) /etc/ , .

, . . , , , .

syslog.conf

CentOS 5.3

, syslogd . , , , ( ).

, , , .

* ( ), none ( ),! (), = ( ).

:

authpriv.* /var/log/secure

authpriv.error (), /var/log/secure.

  emerg (PANIC)
  alert ,
  crit
  err (ERROR)
  warning (WARN)
  notice
  info
  debug ()

, :

  kern
  user
  mail
  daemon
  auth ,
  syslog
  lpr
  news .
  uucp . Unix-to-Unix Copy Protocol.
  cron cron
  authpriv auth,
  ftp FTP-
  ntp
13,14 log audit, alert  
  clock daemon
16-23 local0-local7 . local7, , .

, .

  1. -. , . , .
  2. , | .
  3. /dev/console.
  4. , @ - .

syslog-ng (next generation), .

, , . logrotate, , , .

/etc/logrotate.conf

:


# man logrotate

. , - .

 



<== | ==>
 | : . .
:


: 2017-03-18; !; : 354 |


:

:

.
==> ...

1620 - | 1475 -


© 2015-2024 lektsii.org - -

: 0.008 .