This API is used to download logs by using a cursor.
GET /log?topic_id=xxxxxxxx-xxxx-xxxx-xxxx&cursor=xxxxxx&count=10 HTTP/1.1
Host: <Region>.cls.tencentyun.com
Authorization: <AuthorizationString>
GET /log
There are only common request headers but no special request headers.
Field Name | Type | Location | Required | Description |
---|---|---|---|---|
topic_id | string | query | Yes | Log topic ID |
cursor | string | query | Yes | Cursor obtained through the log cursor getting API |
count | string | query | Yes | Number of logs to be downloaded. Maximum value: 1000 |
HTTP/1.1 200 OK
Content-Type: application/x-protobuf
Content-Length: 23
x-cls-cursor: xxxxxx
x-cls-count:10
<Packaged content of `LogGroupList` in pb format>
Header Name | Description |
---|---|
x-cls-cursor | Current log cursor for use by next download |
x-cls-count | Number of logs downloaded in the current request |
The packaged content of the LogGroupList
object is returned. For the pb file description, please see Uploading Structured Logs.
For more information, please see Error Codes.
Was this page helpful?