Linux lastb -t not filtering by time

This returns all results:
lastb -t 20131121103311

Open in new window

How can I get results only that are newer than the date specified?
LVL 16
Who is Participating?
simon3270Connect With a Mentor Commented:
"lastb" (bad logins) doesn't take the "-t" parameter, only "last" (successful logins) does.

You can get what you want by using "last", but explicitly pointing it at the bad login file:
last -f /var/log/btmp -t 20131121103311

Open in new window

Not necessarily the answer, but maybe add a number to show like, show the last 10 up to that date.  
lastb -10 -t 20131121103311

Open in new window

hankknightAuthor Commented:
That is not helpful.  My question is regarding limiting results by date not by quantity.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.