文件操作 - messages.conf
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/logwatch/default.conf/logfiles/messages.conf
编辑文件内容
########################################################################## # $Id: messages.conf,v 1.25 2009/06/12 14:16:06 mike Exp $ ########################################################################## ######################################################## # This was written and is maintained by: # Kirk Bauer <kirk@kaybee.org> # # Please send all comments, suggestions, bug reports, # etc, to kirk@kaybee.org. ######################################################## # What actual file? Defaults to LogPath if not absolute path.... LogFile = messages # 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 = messages.* Archive = archiv/messages.* Archive = messages-* Archive = archiv/messages-* # Expand the repeats (actually just removes them now) *ExpandRepeats # Now, lets remove the services we don't care about at all... # Comma separated list works best -mgt *RemoveService = talkd,telnetd,inetd,nfsd,/sbin/mingetty,netscreen,NetScreen # Keep only the lines in the proper date range... *ApplyStdDate # vi: shiftwidth=3 tabstop=3 et
修改文件时间
将文件时间修改为当前时间的前一年
删除文件