Solved

Linux lastb -t not filtering by time

Posted on 2013-11-21
3
214 Views
Last Modified: 2013-11-22
This returns all results:
lastb -t 20131121103311

Open in new window

How can I get results only that are newer than the date specified?
0
Comment
Question by:hankknight
3 Comments
 
LVL 10

Expert Comment

by:c_a_n_o_n
Comment Utility
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

0
 
LVL 16

Author Comment

by:hankknight
Comment Utility
That is not helpful.  My question is regarding limiting results by date not by quantity.
0
 
LVL 19

Accepted Solution

by:
simon3270 earned 500 total points
Comment Utility
"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

0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now