On a Mac, I frequently use the tail command to view files as they’re being written to or in use. You can use the Get-EventLog cmdlet to view logs. The Get-EventLog cmdlet has two options I’ll point out in this article. The first is -list and -newest.
The first is used to view a list of event logs, along with retention cycles for logs, log sizes, etc.
You can then take any of the log types and view information about them. To see System information:
There will be too much information in many of these cases, so use the -newest option to see just the latest:
Get-EventLog system -newest 5
The list will have an Index number and an EventID. The EventID can then be used to research information about each error code. For example, at http://eventid.net.