Ubuntu 14.04。auth.log 已删除

mir*_*age 2 logging

日志文件 auth.log 已消失在我的 ubuntu 14.04 服务器上。Fail2ban 日志说文件突然不见了:

2016-04-16 21:59:56,735 fail2ban.actions: WARNING [ssh] Ban 192.169.189.36
2016-04-17 01:27:51,182 fail2ban.filter : ERROR  Unable to get stat on /var/log/auth.log because of: [Errno 2] No such file or directory: '/var/log/auth.log'
2016-04-17 01:27:51,185 fail2ban.filter : ERROR  Unable to get stat on /var/log/auth.log because of: [Errno 2] No such file or directory: '/var/log/auth.log'
Run Code Online (Sandbox Code Playgroud)

和 fail2ban 服务终于闲置了。

我怎样才能重新创建 auth.log 和 mail.log,更重要的是有人知道这是怎么发生的吗?提前感谢您的任何提示。

小智 5

对我来说,只有以下有效:

/etc/init.d/rsyslog restart