Where can I find failed login attempts using macOS mojave?

I am trying to locate security logs for all login attempts. I am using macOS Mojave.

Posted on Apr 1, 2019 11:51 AM

Reply
6 replies

Apr 1, 2019 12:57 PM in response to Rnlawson90

Rnlawson90 wrote:

I am trying to locate security logs for all login attempts. I am using macOS Mojave.


From the terminal.app supply your user name in the command line before you copy and paste:


syslog -F raw -k Facility com.apple.system.lastlog | grep <my_username>
cat /var/log/asl.log 


for failed attempts, copy and paste:


log show --predicate '(eventMessage CONTAINS "Authentication failed")' --style syslog --last 1d


Apr 2, 2019 7:02 AM in response to leroydouglas

So I am not entirely sure I am typing the syslog line in correctly but this is what I get when I do type it in:


Rickys-MacBook-Pro:~ rickylawson$ syslog -F raw -k Facility com.apple.system.lastlog | grep RickyLawson

NOTE:  Most system logs have moved to a new logging system.  See log(1) for more information.

Rickys-MacBook-Pro:~ rickylawson$ cat /var/log/asl.log

cat: /var/log/asl.log: No such file or directory


Apr 2, 2019 10:01 AM in response to leroydouglas

Thank you....that worked for the most part.....I locked my computer screen and intentionally used an incorrect password to unlock and reran the commands and this is all I get:


2019-04-02 12:13:29.211068-0400  localhost opendirectoryd[88]: (PlistFile) [com.apple.opendirectoryd:auth] Authentication failed for <private> with ODErrorCredentialsInvalid


over and over

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Where can I find failed login attempts using macOS mojave?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.