how to check The event viewer in Redhat Enterprise Linux 6.6 for a specific time
Hi ,
we have a redhat enterprise server version 6.6 , this server goes down(power off) at specific time. we want to review the events happened only at that day when server goes down .. like how we check in windows
what is the commands needed to check and how to specify the day needed
thanks
LinuxRedhat
Last Comment
arnold
8/22/2022 - Mon
arnold
Tail /var/log/messages
You have to search
ls -l /var/log/messages*
It will have the date the file was last updated, so you need to look within the file dated after the event you are looking for.
Run
Last | more
Look to see whether there was a logged in session when the system powered off.
Is this a physical or virtual system?
If it is virtual, make sure the issue is not a result of host automatic backup that shuts down the VM before the backup, but forgets to turn the VM back on.
What is the interval that this happens?
mu3tasem
ASKER
it is physical system .
We are not sure about the interval as it happened early morning .. once we noted that application and DB are off we powered the server manually and accordingly the app/DB..
we want to know if the power off was by a human mistake or power issue as this the only server had this issue
You have to search
ls -l /var/log/messages*
It will have the date the file was last updated, so you need to look within the file dated after the event you are looking for.
Run
Last | more
Look to see whether there was a logged in session when the system powered off.
Is this a physical or virtual system?
If it is virtual, make sure the issue is not a result of host automatic backup that shuts down the VM before the backup, but forgets to turn the VM back on.
What is the interval that this happens?