Access Log
ALB is usually the primary access entry to services, handling massive traffic of access requests. ALB will deliver the service logs to US3 storage services in real time. By analyzing these logs, you will get a deep understanding of the access behavior and regional distribution characteristics of the clients. This will help you understand the usage habits of your users more comprehensively and assist you in efficiently troubleshooting and resolving potential issues.
Fees
The access log feature itself is free of charge, but once ALB delivers logs to the designated US3, you will be charged for the storage space used, the number of requests, and the data transfer.
Enable Access Logs
Only the regions where US3 is available can activate the access feature. For more information, please visit the US3 Region.
- Log in to the Application Load Balancer (ALB) console.
- In the top navigation bar, select the region of your ALB instance.
- On the Instances page, click on the target instance ID.
- On the Instance Details page, select the overview tab. Under the basic information section, click on log management.
- Select enable access logs, choose your desired US3 storage space and US3 token, then click confirm.
- Every 5 minutes an access log will be generated and stored in the selected storage space.
View Access Log
- Log in to the Application Load Balancer (ALB) console.
- In the top navigation bar, select the region of your ALB instance.
- On the Instances page, click on the target instance ID.
- On the Instance Details page, select the overview tab. Under basic information section, if you have already enabled log management, click View Log.
- You will be redirected to the US3 storage space details page, where you can view the LB access log according to your needs.
- The log content is as follows:
192.168.5.198 - - [24/Feb/2021:17:33:21 +0800] 200 5068 18070 192.168.5.208:8080 "" "curl/7.29.0" - - 192.168.5.30:80 2 ms 3 ms "GET / HTTP/1.1"
Client's IP -- [Local time] Status code Server to client byte size Client port CLB ip:CLB port "HTTP referer" (None either "" or "-") "HTTP user agent" (None either "" or "-") SSL version (None is -) SSL ciphers (None is -) RS server IP:RS server port Response time Request time "Request"
Modify/Delete Access Log
- Log in to the Application Load Balancer (ALB) console.
- In the top navigation bar, select the region of your ALB instance.
- On the Instances page, click on the target instance ID.
- On the Instance Details page, select the overview tab. Under the basic information section, click on the edit button next to log management.
- You can turn off the log management function or change your US3 storage space and token in the log management popup window.