Torch Log Service
Parameters | Type | Required | Example value | Description |
Parameters | Type | Required | Example value | Description |
PageNumber | Integer | No | 10 | Page number for paginated queries. Defaults to 1, which returns data starting from the first page. |
PageSize | Integer | No | 20 | Page size. Default is 20; maximum is 100. |
TopicId | String | Yes | 4a9bd4bd-53f1-43ff-b88a-64ee1be5**** | Log topic ID. |
TaskName | String | No | task1 | Filter by task name; supports fuzzy search. |
Parameters | Type | Example value | Description |
Parameters | Type | Example value | Description |
Tasks | Refer to the returned example. | Download task details. | |
Total | Integer | 1 | Number of log download tasks. TLS only supports saving download task information for up to one day. |
Parameters | Type | Example value | Description |
Parameters | Type | Example value | Description |
Query | String | * | Log query and analysis statement. |
TaskId | String | 4a************ | ID of the download task. |
EndTime | String | 2022-08-25 15:00:02 | You must specify a log time range when performing query and analysis. Use this parameter to specify the end time. The format is yyyy-MM-dd HH:mm:ss. |
LogSize | Integer | 1024 | The original log size; the unit is byte. |
TopicId | String | 4a************ | Name of the log topic. |
LogCount | Integer | 20 | Number of downloaded log entries. |
TaskName | String | test-task | Name of the download task. |
StartTime | String | 2022-08-25 15:00:01 | When performing query and analysis, you must specify the log time range. This parameter defines the start time. The format is yyyy-MM-dd HH:mm:ss. |
CreateTime | String | 2022-08-25 15:00:03 | The creation time of the download task, formatted as yyyy-MM-dd HH:mm:ss. |
DataFormat | String | json | Supported export formats: CSV, JSON, JSONL. |
TaskStatus | String | creating | Download task status, indicating the generation status of the log compressed file. including:
|
Compression | String | gzip | Export file compression format.
|
TaskType | Integer | 0 | Type of log to download.
|
AllowIncomplete | Boolean | false | Allow downloading logs for imprecise query results.
|
LogContextInfos | / | Download the log information required for context query, including the source host, LogGroup ID, and the Serial number of the log within the LogGroup. This parameter will be returned when TaskType is 2. |
Parameters | Type | Example value | Description |
Parameters | Type | Example value | Description |
Source | String | 127.10.10.** | Hostname of the log source. |
ContextFlow | String | e61050c-f7b3a4bf-2 | Specify the LogGroup ID where the log is located. |
PackageOffset | Long | 66 | Specify the log's serial number in the LogGroup. |
HTTP status code | Error Code | Error message | Description |
HTTP status code | Error Code | Error message | Description |
404 | ErrIndexNotExists | Index does not exist | The index does not exist. |
500 | InternalServerError | We encountered an unexpected server error, please try again later. | Internal server error. |