文件操作 - http.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/logwatch/default.conf/logfiles/http.conf
编辑文件内容
######################################################## # Define log file group for httpd ######################################################## # What actual file? Defaults to LogPath if not absolute path.... LogFile = httpd/*access_log LogFile = apache/*access.log.1 LogFile = apache/*access.log LogFile = apache2/*access.log.1 LogFile = apache2/*access.log LogFile = apache2/*access_log LogFile = apache-ssl/*access.log.1 LogFile = apache-ssl/*access.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/*access_log.* Archive = httpd/*access_log.* Archive = apache/*access.log.*.gz Archive = apache2/*access.log.*.gz Archive = apache2/*access_log.*.gz Archive = apache-ssl/*access.log.*.gz Archive = archiv/httpd/*access_log-* Archive = httpd/*access_log-* Archive = apache/*access.log-*.gz Archive = apache2/*access.log-*.gz Archive = apache2/*access_log-*.gz Archive = apache-ssl/*access.log-*.gz # Expand the repeats (actually just removes them now) *ExpandRepeats # Keep only the lines in the proper date range... *ApplyhttpDate # vi: shiftwidth=3 tabstop=3 et
修改文件时间
将文件时间修改为当前时间的前一年
删除文件