2024-01-30 03:17:10
30 01 2024
摘要:审计日志、linux审计日志、logrotate

对于linux操作系统修改文件/etc/logrotate.conf日志配置策略。

# see "man logrotate" for details

# global options do not affect preceding include directives

# rotate log files monthly
#weekly
monthly #把周修改成月

# use the adm group by default, since this is the owning group
# of /var/log/syslog.
su root adm

# keep 6 months worth of backlogs
#rotate 4
rotate 6 #保留6个月的日志

# create new (empty) log files after rotating old ones
create

# use date as a suffix of the rotated file
#dateext

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

延伸阅读
  1. 上一篇:JDK
  2. 下一篇:Nginx
发表评论