CentOS 7 restarted overnight, how to check logs

Issues related to applications and software problems
Post Reply
LMHmedchem
Posts: 53
Joined: 2011/03/22 17:32:25
Location: Boston

CentOS 7 restarted overnight, how to check logs

Post by LMHmedchem » 2023/06/04 00:37:07

Hello,

This morning I came down to find that CentOS had restarted for some reason. I know this because this is a multi-boot system and I was at the login screen for the default OS. I am assuming that the OS crashed somehow.

I would like to look at the system logs to see if there is some indication of what happened. There were some SE linux messages when I logged in but they were all from after the login.

Can someone let me know where to look?

LMHmedchem

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CentOS 7 restarted overnight, how to check logs

Post by lightman47 » 2023/06/04 11:03:30

You can start in /var/log/messages. You'll know when you see it starting back up again - there'll be many dozens of entries with almost the same time. The messages prior to those would hopefully contain relevant info.

Afterthought - having just encountered this again myself: Be aware that logrotate may have run in the interim - you may have to check /var/log/messages-{previous log date}.

LMHmedchem
Posts: 53
Joined: 2011/03/22 17:32:25
Location: Boston

Re: CentOS 7 restarted overnight, how to check logs

Post by LMHmedchem » 2023/06/05 21:25:42

Thanks, I will check those locations. I have already looked at the SELinux Troubleshooter and the System Log Viewer. Both of those applications only showed entries from after I had restarted after the crash.

LMHmedchem

Post Reply