Why are /var/log/messages, /var/log/maillog and /var/log/secure empty?

Make sure that you have the rsyslog package installed and that it is enabled otherwise your log files will be empty. Some newer distributions might not install this package by default as they use journald logging by default.

Centos/AlmaLinux/RHEL

yum install rsyslog
systemctl enable rsyslog --now

Debian/Ubuntu

apt-get install rsyslog
systemctl enable rsyslog --now
  • rsyslog
  • 2 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

How can I fix the error: Host '127.0.0.1' is not allowed to connect to this MariaDB server?

When looking at the server mail log you see this: Apr 4 11:01:15 alma amavis[3540852]:...

ClamAV will not start. How can I fix the ClamAV error: daily.{c[vl]d,inc} was not met?

ClamAV refuses to start and when viewing the status you see...

How can I fix any statistics generation problems?

Missing the Warden Crontab Entry There is a crontab entry that will update Warden statistics...

How can I fix the error: "milter-reject: END-OF-MESSAGE from..." in the log and found the AV in error (cannot read /etc/clam.d/scan.conf).

Cloudlinux / Imunify360 added their own version of ClamAV to their repo which accidentally...

How can I fix the error: Can't connect to TCP port 10024 on 127.0.0.0 [Address already in use] when trying to start Amavis?

When trying to start Amavis you see this in the mail log: Oct 02 03:20:15 condor3648 systemd[1]:...