Is there an event viewer on a MAC computer?

Is there a system event viewer for a mac computer.  I have an imac and it alll of a sudden shut off.  Lost power.  Not sure if the cable was loose and this is why or some other reason.  Is there a viewer that would tell me that I lost power?
mkramer777Asked:
Who is Participating?
 
serialbandCommented:
You'll have to go to the command line.

The logs are in /var/log/system.log for shutdown events.  There's a file for each day.  The default is 1 week.

system.log
system.log.0.gz
system.log.1.gz
system.log.2.gz
system.log.3.gz
system.log.4.gz
system.log.5.gz
system.log.6.gz

You will need the z tools to view the compressed gzip files.

zcat system.log*
zgrep shutdown system.log*
0
 
Scott CSenior Systems EnginerCommented:
In the Console - View - Show Log List
0
 
mkramer777Author Commented:
Not sure where I am in the console.  I see system reports, user reports, library logs,
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
serialbandCommented:
Console.app --> system log contains the shutdown events or crash logs.  When did your system crash?  Scroll to that point.

If you just want to see all of it, stay on your device and scroll to the time when your system crashed and see all the different logged activities.
0
 
David AndersTechnician Commented:
Depending on model, holding D key down at startup will run Apple Diagnostics.
Etrecheck is another diagnostic  https://etrecheck.com/
0
 
mkramer777Author Commented:
only shows logs for today
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.