Do you want to identify who is trying to hack into your database and their login fails?
https://www.mssqltips.com/sqlservertip/4398/quickly-find-failed-sql-server-l...
Gives you two different methods to do the same task. Event Viewer or powershell reading event viewer details.