freshStartTail 第一次启动时 抛弃旧的日志
2016-12-10 11:48
791 查看
freshStartTail [on/off] (requires v8.18.0+) Default: off This is used to tell rsyslog to seek to the end/tail of input files (discard old logs)**at its first start(freshStart)** and process only new log messages. When deploy rsyslog to a large number of servers, we may only care about new log messages generated after the deployment. set freshstartTail to on will discard old logs. Otherwise, there may be vast useless message burst on the remote central log receiver 这是告诉 rsyslog来寻求 输入日志的尾部,抛弃旧的日志 在第一次启动的时候,只处理最新的日志 当部署rsyslog 到一大量的服务器的时候,我们只关心新的日志, 设置 freshstartTail 为on 会忽略老的日志。 $ModLoad imuxsock # provides support for local system logging (e.g. via logger command) $ModLoad imklog # provides kernel logging support (previously done by rklogd) module(load="imfile" PollingInterval="5") $ModLoad imtcp $InputTCPServerRun 514 $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat $IncludeConfig /etc/rsyslog.d/*.conf *.info;mail.none;authpriv.none;cron.none;local5.none /var/log/messages authpriv.* /var/log/secure mail.* -/var/log/maillog cron.* /var/log/cron uucp,news.crit /var/log/spooler local7.* /var/log/boot.log $InputFilePersistStateInterval 1 input(type="imfile" File="/var/log/nginx/access.log" Tag="zjzc-frontend01-access" PersistStateInterval="1" reopenOnTruncate="on" freshStartTail="on" Severity="info" Facility="local5") input(type="imfile" File="/var/log/nginx/error.log" Tag="zjzc-frontend01-error" Severity="info" PersistStateInterval="1" reopenOnTruncate="on" freshStartTail="on" Facility="local5") local5.* @@115.236.160.82:9514
相关文章推荐
- freshStartTail 第一次启动时 抛弃旧的日志
- mysql 第一次启动日志
- android应用程序第一次启动时显示引导界面
- App判断程序是否第一次启动
- 关闭树莓派启动时滚屏日志
- androidpn server 启动日志分析
- Linux下启动关闭多个tomcat清除logs日志文件删除War包等操作,版2.0
- 第一次写CSDN日志
- “windows不能在本地计算机启动Apache Tomcat. 有关更多信息,查阅系统事件日志。如果这是非Microsoft服务,请与服务厂商联系,并参考特定服务错误代码0.”
- ios 判断app程序第一次启动方法
- iOS判断是否第一次启动
- php定时自动执行 需启动第一次
- android实现应用程序只有在第一次启动时显示引导界面 ,以后就不在显示了
- Android Studio第一次启动的Fetching android sdk component information的问题
- Win2008中SqlServer2008 无法打开错误日志文件导致无法启动的解决方法
- HP loadrunner 11.52 agent process启动日志有错误,原因是vmware的service占用了端口
- app打包安装后第一次启动Home时重复进入启动页的问题
- systemd 开机启动及相关文件语法解读 【转自阮一峰网络日志】
- Android 判断应用 第一次启动
- mysql 的日志的启动与查看