① logrotate
日志分割工具:logrotate
主配:/etc/logrotate.conf
分割规则目录:/etc/logrotate.d/
#logrotate -vf /etc/logrotate.conf
(chattr +a /var/log/message)
② 集中式日志服务器:
Server端:#vim /etc/sysconfig/syslog ---- SYSLOGD_OPTIONS=“-m 0 -r”
#service syslog restart
Client端:#vim /etc/syslog.conf ----- 添加一行“*_* @192.168.18.205”
#service syslog restart Server端IP
转载于:https://blog.51cto.com/8613154/1397500