One of the typical tasks of Linux administrators is to check successful and failed login attempts in the Linux system. This ensures that there are no illegal attempts at the environment. This tutorial helps the user to check successful and failed user login attempts on the Linux system.
Source: LXer – Bash Script to Check Successful and Failed User Login Attempts on Linux