I am able to see the failed login attempts made on High Sierra via the command:
log show --predicate '(eventMessage CONTAINS "Authentication failed")' --style syslog --last 1h
However it does not tell which user did the attempt fail for. Is there a way for system admin to see the username as well for the failed and successful login attempts ?
By Login I mean local login from the Lock screen or upon system reboot.
The command to retrieve logs for failed attempts was from this question:
How do I see all my failed login attempts (macOS High Sierra)
But the answers to that question stopped short of telling how to see username of failed attempt in logs.
Is it possible to see the username for failed and successful attempts?
log: Could not open local log store: The log archive format is corrupt and cannot be read
. I don't know if this is a problem with my system or if the command has changed. Anyways - I understand that login names are not stored in the logs. I just entered my password in the username field and obviously don't want that to show up in the logs even if I'm the only user on this system.