linux 启动rsyslog服务_linux系统rsyslog服务开启,logrotate启用,但是系统不产生日志,请问这是什么原因造成的?...

linux系统rsyslog服务开启,logrotate启用,但是系统不产生日志。哪位大神知道怎么回事,logrotate和rsyslog配置文件都是默认的没改动。日志从10月1号就没有了。系统是centos6.5

[root@CTG145 log]# ls

anaconda.ifcfg.log btmp-20171101 dmesg.old messages secure sssd

anaconda.log ConsoleKit dracut.log messages-20170910 secure-20170910 tallylog

anaconda.program.log cron httpd messages-20170917 secure-20170917 version_control

anaconda.storage.log cron-20171008 lastlog messages-20170924 secure-20170924 wtmp

anaconda.syslog cron-20171015 maillog messages-20171001 secure-20171001 yum.log

anaconda.xlog cron-20171022 maillog-20170910 mysqld.log spooler

anaconda.yum.log cron-20171029 maillog-20170917 ntpstats spooler-20170910

audit cron-20171105 maillog-20170924 prelink spooler-20170917

boot.log cups maillog-20171001 sa spooler-20170924

btmp dmesg mcelog samba spooler-20171001

[root@CTG145 log]# cd httpd

[root@CTG145 httpd]# ls

access_log access_log-20170917 access_log-20171001 error_log-20170910 error_log-20170924

access_log-20170910 access_log-20170924 error_log error_log-20170917 error_log-20171001

logrotate配置都是默认的:

see "man logrotate" for details

rotate log files weekly

weekly

keep 4 weeks worth of backlogs

rotate 4

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

RPM packages drop log rotation information into this directory

include /etc/logrotate.d

no packages own wtmp and btmp -- we'll rotate them here

/var/log/wtmp {

monthly

create 0664 root utmp

minsize 1M

这个问题很奇怪,难道是rsyslog有其他什么机制么?cron有10月1号以后的日志,但内容是空。系统有周期计划,不应该是空的日志。判断系统确实没有生成日志。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值