Accounting tracks user activities and resource usage. All user activities that affect the system, such as configuration changes, are written to an audit log. Audit log messages can be viewed by issuing the show log audit command, and indicate the following:
Which user made the change (login and logout details, including the origin, authentication method, and role).
Authentication failures and lockouts.
The interface used to make the change: Command Line Interface (CLI), Web UI, Serial Console, or LCD Panel Interface.
The change that was made.
The date and time the change was made.
The session ID used to initiate the change. The session ID persists for the duration of the session, which starts when the user logs in and ends when the user logs out.
Audit log messages are also logged to the system log. The audit log messages in this log are prefixed with AUDIT: and tagged as described in the following table so you can quickly locate them.
Message type | Tag |
|---|---|
Configuration changes |
|
Other actions |
|
User login |
|
User logout |
|
Authentication failure |
|
User account lockout |
|
Authorization failure |
|
Execution of CLI commands |
|
Miscellaneous |
|
See Managing audit logs using the CLI for information about configuring and viewing audit logs.
Note
You can use the aaa accounting CLI command to send audit messages to TACACS+ servers.