I'm having some problems with my Macbook. The primary problem is that I'm unable to log into my admin account since a recent system update. I tried searching for solutions online, but haven't found any yet, I also haven't had time to go to an Apple store.
Now on my User account, a possibly related problem I have encountered is that I cannot access the logs, when I tried to run:
log show | grep 'Wake reason' | grep '2018-06'
I get:
log: Could not open local log store: The log archive format is corrupt and cannot be read
Does anybody have a clue what might be going on?
Best Answer
The error message you are seeing is very misleading. I believe what's actually happening is the system is preventing unprivileged accounts from reading the log contents. If you instead use sudo to execute the log show command as shown below, you'll get what you want.
Also, the log facility has a built-in method (via the --start and --end command-line switches) to limit the time range of log messages you want.
Give it a shot: