Torch Log Service
Actions | Description |
Actions | Description |
Only query or preview logs |
|
Query and analyze logs | You can download up to 1 million rows of query and analysis results at a time, with a data volume not exceeding 2 GiB. If the limit is exceeded, only the first 1 million rows or 2 GiB of data are downloaded. |
Parameters | Type | Required | Example value | Description |
Parameters | Type | Required | Example value | Description |
TaskName | String | Yes | test-download-task | Download task name. Length must be between 1 and 63 characters. |
TopicId | String | Yes | 3*********** | The ID of the TLS topic where the log is located. |
Query | String | No | * | Analyze query statement, up to 4 KiB in length.
|
StartTime | Integer | Yes | 1658332800000 | The query start time, accurate to milliseconds. Unix timestamp format, representing the number of milliseconds since 1970-01-01 00:00:00 UTC. |
EndTime | Integer | Yes | 1658332800000 | Query end time, accurate to milliseconds. Unix timestamp format, representing the number of milliseconds since 1970-01-01 00:00:00 UTC. |
DataFormat | String | Yes | csv | Export file format, supported settings:
|
Sort | String | No | asc | Sort order of logs when only querying without analysis.
|
Limit | Integer | No | 100 | Number of original log entries downloaded or number of rows in the analysis result Data volume must comply with download task limits For details, see User Guide |
Compression | String | Yes | gzip | Compression format of the exported file
|
AllowIncomplete | Boolean | No | false | Allow downloading logs with imprecise query results.
|
TaskType | Integer | Yes | 0 | Type of log to download.
|
LogContextInfos | No | / | Download the log information required for query context, including the source host, the LogGroup ID, and the Serial number in the LogGroup. This parameter is required when TaskType is 2. |
Parameters | Type | Required | Example value | Description |
Parameters | Type | Required | Example value | Description |
Source | String | No | 127.10.10.** | The host where the logs originate. |
ContextFlow | String | No | e61050c-f7b3a4bf-2 | Specify the LogGroup ID where the log is located. |
PackageOffset | Long | No | 66 | Specifies the Serial number of the log in the LogGroup. |
Parameters | Type | Example value | Description |
Parameters | Type | Example value | Description |
TaskId | String | 3*********** | Log topic ID. |
HTTP status code | Error Code | Error message | Description |
HTTP status code | Error Code | Error message | Description |
400 | InvalidArgument | Invalid argument key %s, value %s, please check argument. | Invalid parameter. |
409 | ErrDownloadTaskAlreadyExists | Download task already exist | The download task already exists. A download task with the same name already exists in this region. |
500 | InternalServerError | We encountered an unexpected server error, please try again later. | Internal server error. |