Imported Upstream version 2.4.3
[platform/upstream/audit.git] / tools / aulast / aulast.8
1 .TH AULAST: "8" "Nov 2008" "Red Hat" "System Administration Utilities"
2 .SH NAME
3 aulast \- a program similar to last
4 .SH SYNOPSIS
5 .B aulast [ options ] [ user ] [ tty ]
6
7 .SH DESCRIPTION
8 \fBaulast\fP is a program that prints out a listing of the last logged in users similarly to the program \fBlast\fP and \fBlastb\fP. Aulast searches back through the audit logs or the given audit log file and displays a list of all users logged in (and out) based on the range of time in the audit logs. Names of users and tty’s can be given, in which case aulast will show only those entries matching the arguments. Names of ttys can be abbreviated, thus aulast 0 is the same as last tty0.
9
10 The pseudo user reboot logs in each time the system is rebooted. Thus last reboot will show a log of all reboots since the log file was created.
11
12 The main difference that a user will notice is that \fBaulast\fP print events from oldest to newest, while \fBlast\fP prints records from newest to oldest. Also, the audit system is not notified each time a tty or pty is allocated, so you may not see quite as many records indicating users and their tty's.
13
14 .SH OPTIONS
15 .TP
16 .B \-\-bad
17 Report on the bad logins.
18
19 .TP
20 .B \-\-extract
21 Write raw audit records used to create the displayed report into a file aulast.log in the current working directory.
22
23 .TP
24 .BI \-f file
25 Use the file instead of the audit logs for input.
26
27 .TP
28 .B \-\-proof
29 Print out the audit event serial numbers used to determine the preceding line of the report. A Serial number of 0 is a place holder and not an actual event serial number. The serial numbers can be used to examine the actual audit records in more detail. Also an ausearch query is printed that will let you find the audit records associated with that session.
30
31 .TP
32 .B \-\-stdin
33 Take audit records from stdin.
34
35 .SH "EXAMPLES"
36 .nf
37 To see this month's logins
38 .B ausearch \-\-start this-month \-\-raw | aulast \-\-stdin
39
40 .SH "SEE ALSO"
41 .BR last (1),
42 .BR lastb (1),
43 .BR ausearch (8),
44 .BR aureport (8).
45
46 .SH AUTHOR
47 Steve Grubb