Linux – /var/log/messages Not Created Although restart rsyslog.service

centos7linuxloggingrsyslogsyslog

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 with systemd-journald daemon.

you can display logs using command journalctl -r.

many options are available in the man journalctl manpage

Related Topic