tencent cloud

Cloud Load Balancer

릴리스 정보 및 공지 사항
릴리스 노트
제품 공지
제품 소개
제품 개요
제품 장점
시나리오
기술 원리
Product Comparison
사용 제한
Service Regions and Service Providers
구매 가이드
과금 개요
비용 계산 항목
구매 방식
연체 안내
제품 속성 선택
시작하기
도메인 이름 기반 CLB 시작하기
CLB 시작하기
CentOS에서 Nginx 배포하기
CentOS에서 Java Web 배포하기
운영 가이드
CLB 인스턴스
CLB 리스너
리얼 서버
상태 확인
인증서 관리
로그 관리
모니터링 및 알람
액세스 관리
사례 튜토리얼
CLB에 인증서 배치(양방향 인증)
HTTPS 포워딩 구성
리얼 클라이언트 IP 가져오기
로드 밸런싱 구성 모니터링 및 알람에 대한 모범 사례
다중 가용존에서 HA 구현
로드 밸런싱 알고리즘 선택 및 가중치 구성 예시
CLB 수신 도메인 이름에 대한 WAF 보호 구성하기
OPS 가이드
과도한 TIME_WAIT 상태의 클라이언트에 대한 솔루션
CLB HTTPS 서비스 성능 테스트
스트레스 테스트 FAQ
CLB 인증서 작업 권한
문제 해결
UDP 상태 확인 예외 발생
API 참조
History
Introduction
API Category
Instance APIs
Listener APIs
Backend Service APIs
Target Group APIs
Redirection APIs
Other APIs
Classic CLB APIs
Load Balancing APIs
Making API Requests
Data Types
Error Codes
CLB API 2017
FAQ
과금 관련
CLB 구성
헬스체크 이상 점검
HTTPS
WS/WSS 프로토콜 지원
HTTP/2 프로토콜 지원
연락처
용어집

DescribeLoadBalancerLog

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-12-19 15:00:21

API Description

This API is used to query the CLB layer-7 log in COS. It is applicable to public network CLB instances with HTTP or HTTPS listener configured and COS log enabled.
Domain name for API calls: lb.api.qcloud.com
Note that this API only supports querying COS log, but not CLS log. To query the CLS log, call the Searching for Log API, which can be used to query the forwarding logs of a CLB instance over the last three days, including logs forwarded to the RS and those directly returned from the CLB due to RS exception. Interval between requests shall be within one day.

Request Parameters

The list below contains only the API request parameters. Common parameters should be added when you call the API. For more information, see the Common Request Parameters. The Action field for this API is DescribeLoadBalancerLog.
Parameter
Required
Type
Description
loadBalancerId
Yes
String
CLB instance ID, which can be queried via the DescribeLoadBalancers API.
order
No
String
Log sequence by timestamp. Valid values: desc and asc. Default value: desc.
startTime
No
Int
Time when you start querying logs using Unix timestamp (accurate to seconds). The default is 5 minutes earlier than endTime.
endTime
No
Int
Time when you finish querying logs using Unix timestamp (accurate to seconds). The default is the current timestamp.
offset
No
Int
Log offset. Value range: [0,10000].
limit
No
Int
Number of logs. Value range: [0,500].
filter
No
Array
Filter condition of logs in key-value pairs. See the valid values for the key of filter array below for supported fields.
Valid values for the key of filter array:
Key
Required
Type
Description
status
No
Int
Logs with the status code matching value are returned to the client.
status_not
No
Int
Logs except those with the status code matching value are returned to the client.
server_name
No
String
Logs with the domain name in the CLB rules matching value are returned.
server_name_not
No
String
Logs except those with the domain name in the CLB rules matching value are returned.
http_host
No
String
Logs with the domain name of http request matching value are returned.
http_host
No
String
Logs except those with the domain name of http request matching value are returned.
remote_addr
No
String
Logs with the request client IP matching value are returned.
remote_addr_not
No
String
Logs except those with the request client IP matching value are returned.
request_time_less_than
No
String
Logs with the request processing time less than value are returned. This parameter must be passed in along with request_time_greater_than.
request_time_greater_than
No
String
Logs with the request processing time greater than value are returned. This parameter must be passed in along with request_time_less_than.

Response Parameters

Parameter
Type
Description
code
Int
Common error code. 0: success; other values: failure. For more information, see Common Error Codes.
message
String
API-related module error message description.
codeDesc
String
Error code. For a successful operation, "Success" is returned. For a failed operation, a message describing the failure is returned.
logInfo
Json
Information of the log returned.
logInfo format:
Parameter
Type
Description
logList
Array
Log array.
total
Int
Total number of logs.
logList data format:
No.
Parameter
Type
Description
1
server_name
String
Domain name configured in the CLB layer-7 rules.
2
request
String
Request line.
3
remote_addr
String
Client IP.
4
upstream_addr
String
RS information.
5
upstream_header_time
String
The time it takes to receive an HTTP header from the RS.
6
connection_requests
Int
Number of connection requests.
7
ssl_handshake_time
String
The time that an SSL handshake takes.
8
ssl_cipher
String
SSL cipher suite.
9
ssl_protocol
String
SSL protocol version.
10
ssl_session_reused
String
SSL session reuse.
11
time_local
String
Request access time.
12
http_host
String
Request domain name.
13
server_addr
String
Request destination IP.
14
bytes_sent
Int
Number of bytes sent to the client.
15
upstream_status
String
RS status.
16
protocol_type
String
Protocol type (http/https/spdy/http2/ws/wss).
17
request_time
Int
Request processing time.
18
upstream_connect_time
Int
The time it takes to establish a TCP connection with an RS, in seconds.
19
request_length
Int
Number of bytes of the request received from the client.
20
tcpinfo_rtt
Int
TCP connection RTT, in milliseconds.
21
upstream_response_time
Int
The time it takes to receive a response from an RS, in seconds.
22
status
String
Status code returned by the request. Status code “200” will be returned if no RS exists.
23
http_user_agent
String
The user_agent used in the HTTP request header.

Example

Request
https://lb.api.qcloud.com/v2/index.php?Action=DescribeLoadBalancerLog
&loadBalancerId=lb-7wdcqme9
&filter.0.key=status
&filter.0.value=200
&filter.1.key=server_name
&filter.1.value=www.qq.com
Response
{
"code": 0,
"message": "",
"codeDesc": "Success",
"logInfo": {
"logList": [
{
"server_name": "www.qq.com",
"request": "GET / HTTP/1.1",
"remote_addr": "119.28.138.187",
"upstream_addr": "-",
"upstream_header_time": "-",
"connection_requests": 1,
"ssl_cipher": "-",
"remote_port": "40554",
"time_local": "02/Nov/2017:12:03:13 +0800",
"http_host": "115.159.132.241",
"server_addr": "115.159.132.241",
"bytes_sent": 239,
"upstream_status": "-",
"protocol_type": "http",
"ssl_handshake_time": "-",
"request_time": 0,
"upstream_connect_time": "-",
"request_length": 79,
"ssl_session_reused": "-",
"tcpinfo_rtt": 38000,
"upstream_response_time": "-",
"ssl_protocol": "-",
"status": "200"
}
],
"total": 3918
}
}



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백