I use centos7 and /var/log/messages
has not worked for a while although I restarted rsyslog.service
. Its size was always 0.
I then deleted the messages file, and restarted rsyslog
again but it was not created automatically.
I can not log anything currently. What should I do?
Best Answer
centos7 is
systemd
based system, and logging is ensured withsystemd-journald
daemon.you can display logs using command
journalctl -r
.many options are available in the
man journalctl
manpage