익명 15:12

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

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

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?



Top Answer/Comment:

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

상단 광고의 [X] 버튼을 누르면 내용이 보입니다