User login, user logout, and user login result logs can be used to query user information, such as the user IP address and the time when a user went online or offline.
After the function to generate user login, user logout, and user login result logs is enabled on the router, the router records the related information when users successfully go online or offline. Such information includes the username, user login/logout operation, user login/logout time, user access interface, user IP address, and user MAC address.
It is recommended that IPsec be deployed to protect transmission channels and ensure security.
The system view is displayed.
The IP address and port number of the log server that receives user login, user logout, and user login result logs are configured.
An SSL policy is configured for the log server that receives user login, user logout, and user login result log packets.
The IP address and port number of the log server configured in this command must be the same as those configured in Step 2. The transport tcp parameter must be set to TCP in Step 2.
The version number of the user login and logout logs to be sent are configured.
The format of the user login and logout logs to be sent is configured.
The function to generate and send user login and logout logs is enabled.
The function to generate and send user login result logs is enabled.
The configuration is committed.
To re-collect information about user login, user logout, and user login result results, run the reset ip userlog statistics access command to clear the existing records on the device.
Statistics about user login, logout, and online result logs cannot be restored after they are cleared. Therefore, exercise caution when running this command.