![Novell LINUX ENTERPRISE DESKTOP 11 Manual Download Page 417](http://html1.mh-extra.com/html/novell/linux-enterprise-desktop-11/linux-enterprise-desktop-11_manual_1711827417.webp)
Then, specify the start date and time and the end date and time of the desired time
frame and combine it with the report option needed. This example focuses on login
attempts:
aureport -ts 02/16/09 8:00 -te 02/16/09 18:00 -l
Login Report
============================================
# date time auid host term exe success event
============================================
1. 16/02/09 12:39:05 root: 192.168.2.100 sshd /usr/sbin/sshd no 2108
2. 16/02/09 12:39:12 0 192.168.2.100 /dev/pts/1 /usr/sbin/sshd yes 2114
3. 16/02/09 13:09:28 root: 192.168.2.100 sshd /usr/sbin/sshd no 2131
4. 16/02/09 13:09:32 root: 192.168.2.100 sshd /usr/sbin/sshd no 2133
5. 16/02/09 13:09:37 0 192.168.2.100 /dev/pts/2 /usr/sbin/sshd yes 2139
The start date and time are specified with the
-ts
option. Any event that has a
time stamp equal to or after your given start time appears in the report. If you omit
the date,
aureport
assumes that you meant today. If you omit the time, it assumes
that the start time should be midnight of the date specified. Use the 24 clock notation
rather than the 12 hour one and adjust the date format to your locale (specified in
/etc/sysconfig/audit
under
AUDITD_LANG
, default is
en_US
).
Specify the end date and time with the
-te
option. Any event that has a time stamp
equal to or before your given event time appears in the report. If you omit the date,
aureport
assumes that you meant today. If you omit the time, it assumes that
the end time should be now. Use a similar format for the date and time as for
-ts
.
All reports except the summary ones are printed in column format and sent to STDOUT,
which means that this data can be piped to other commands very easily. The visualization
scripts introduced in
Section 30.8, “Visualizing Audit Data”
(page 408) are just one
example of how to further process the data generated by audit.
30.6 Querying the Audit Daemon Logs
with ausearch
The aureport tool helps you to create overall summaries of what is happening on the
system, but if you are interested in the details of a particular event, ausearch is the tool
to use. ausearch allows you to search the audit logs using special keys and search
phrases that relate to most of the flags that appear in event messages in
/var/log/
Understanding Linux Audit
403
Summary of Contents for LINUX ENTERPRISE DESKTOP 11
Page 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Page 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Page 10: ......
Page 29: ...Part I Authentication...
Page 30: ......
Page 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Page 126: ......
Page 127: ...Part II Local Security...
Page 128: ......
Page 158: ......
Page 173: ...Part III Network Security...
Page 174: ......
Page 194: ......
Page 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Page 210: ......
Page 228: ......
Page 229: ...Part IV Confining Privileges with Novell AppArmor...
Page 230: ......
Page 274: ......
Page 300: ......
Page 328: ......
Page 340: ......
Page 342: ......
Page 386: ......
Page 387: ...Part V The Linux Audit Framework...
Page 388: ......