After clients connect to Alibaba Cloud using a Smart Access Gateway (SAG) app instance, you can view and subscribe to client access logs on the SAG console.
Prerequisites
A client can connect to Alibaba Cloud using an SAG app instance. For more information, see Get started with the SAG App.
Step 1: Enable the access log feature
To view client access logs, you must first enable the access log feature for the SAG app instance. Once enabled, the system automatically records all client connection information for the instance and generates access logs.
Log on to the SAG console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region.
-
On the SAG App Instances page, find the target SAG app instance and click the SAG app instance ID.
-
On the Basic Information tab of the SAG app instance details page, find the Access Log item and turn on the switch.
Step 2: View client access logs
After you enable the access log feature for an SAG app instance, you can view the client access logs for the app instance on the Access Log page.
-
In the left-side navigation pane, choose .
-
On the Access Log page, view client access logs on the Audit List tab.
The audit list includes the following columns: SAG Instance ID/Name, Operation Time, Username, Terminal Type, Source, IP, Object, Status, and Details. You can search by SAG instance ID or name, or filter log entries by time.
Step 3 (Optional): Subscribe to client access logs
If you want to closely monitor specific clients, you can create a subscription. The system then sends you the access logs for these clients at regular intervals.
-
In the left-side navigation pane, choose .
-
On the Access Log page, click the Audit List tab, and then click Subscribe.
-
In the Create Subscription dialog box, configure the parameters based on the following information, and then click OK.
ImportantWhen you create a subscription, you can subscribe only to information that is available on the Audit List tab.
For example, assume the access log feature is enabled for SAG app instance A, which has three clients: Client 1, Client 2, and Client 3. Client 1 and Client 2 have connected to Alibaba Cloud through the app instance, but Client 3 has never connected. In this scenario, the system records connection information for only Client 1 and Client 2. This means the Audit List tab contains only the access logs for Client 1 and Client 2. Therefore, when you create a subscription, you can subscribe to the access logs of only Client 1 and Client 2.
Parameter
Description
Email Address
Enter the email address where you want to receive the access logs.
To enter multiple email addresses, separate them with commas (,).
Send At
Specify the time when the system sends the access logs.
SAG Instance ID/Name
Select the SAG app instance for the subscription.
By default, the subscription includes the access logs of all recorded clients on the SAG app instance.
Username
Select the username of the client for the subscription.
ImportantWhen you select a client, ensure its SAG app instance is also included in the subscription. Otherwise, the system will not send the access logs for this client.
Terminal Type
Select the terminal type of the client for the subscription.
By default, the subscription includes the access logs of all recorded terminal types.
Source
Select the source of the client. The only valid value is All.
IP
Select the IP address of the client. The only valid value is All.
Object
Select the client events for the subscription.
-
Log on to App: The client has connected to Alibaba Cloud.
-
Connect App to VPN: The client has connected to the internal network.
-
Disconnect App from VPN: The client has disconnected from the internal network.
-
Log out of App: The client has disconnected from Alibaba Cloud.
After you create a subscription, click the Subscription Details tab to view subscription records, including recipient email addresses, creation time, sending schedule, and subscription information. In the Actions column, you can Modify, Cancel Subscription, or Delete a subscription.
-
More operations
|
Actions |
Steps |
|
Export access logs |
You can export the currently generated client access logs to a specified email address.
|
|
Download access logs |
You can download the currently generated client access logs to your local computer.
|
|
Modify a subscription |
You can modify a subscription at any time after creating it.
|
|
Cancel a subscription |
To temporarily stop receiving access logs from a subscription, you can cancel it.
|
|
Delete a subscription |
If you no longer need a subscription, you can delete it. You must cancel a subscription before you can delete it. For more information, see Cancel Subscription.
|
|
Disable the access log feature |
If you no longer need to monitor clients for an SAG app instance, you can disable its access log feature. Once disabled, the system stops recording connection information for the instance's clients.
|