文件操作 - http-error.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/logwatch/default.conf/logfiles/http-error.conf
编辑文件内容
######################################################## # Define log file group for httpd ######################################################## # What actual file? Defaults to LogPath if not absolute path.... LogFile = httpd/*error_log LogFile = apache/*error.log.1 LogFile = apache/*error.log LogFile = apache2/*error.log.1 LogFile = apache2/*error.log LogFile = apache2/*error_log LogFile = apache-ssl/*error.log.1 LogFile = apache-ssl/*error.log # If the archives are searched, here is one or more line # (optionally containing wildcards) that tell where they are... #If you use a "-" in naming add that as well -mgt Archive = archiv/httpd/*error_log.* Archive = httpd/*error_log.* Archive = apache/*error.log.*.gz Archive = apache2/*error.log.*.gz Archive = apache2/*error_log.*.gz Archive = apache-ssl/*error.log.*.gz Archive = varnish/*error.log.*.gz Archive = archiv/httpd/*error_log-* Archive = httpd/*error_log-* Archive = apache/*error.log-*.gz Archive = apache2/*error.log-*.gz Archive = apache2/*error_log-*.gz Archive = apache-ssl/*error.log-*.gz # Expand the repeats (actually just removes them now) *ExpandRepeats # Keep only the lines in the proper date range... *ApplyhttpDate # or use a custom time filter: # *ApplyStdDate = "\[%a %b %d %H:%M:%S %Y\]" # vi: shiftwidth=3 tabstop=3 et
修改文件时间
将文件时间修改为当前时间的前一年
删除文件