Torch Log Service
Request method | POST |
Request method | POST |
URI | https://{tls-endpoint}/WebTracks?TopicId={TopicId}&ProjectId={ProjectId} |
transport protocol | HTTPS |
Name | Type | Required | Example | Description |
Name | Type | Required | Example | Description |
Content-Type | String | Required | Application/json | Format of log content. Fixed as application/json. |
x-tls-bodyrawsize | String | Required | 1024 | The original size (before compression) of the request body, in bytes. |
X-tls-compresstype | String | Optional | LZ4 | The compressed format of the request body. Not compressed by default. Support is set to lz4, indicating that the compression format is lz4. At this time, the compressed data needs to be passed in the request body. |
Name | Type | Required | Example | Description |
Name | Type | Required | Example | Description |
ProjectId | String | Yes | 5B ********* | Log item ID. |
TopicId | String | Yes | 4A ********** n | Log subject ID. |
Name | Type | Required | Example | Description |
Name | Type | Required | Example | Description |
Logs | Array of Log | Required | [ { "tap1": "person-A", "tap2": "action-A" } ] | LogGroup (LogGroup), which represents a collection of multiple logs, and one log represents one log. tip The number of logs in a LogGroup cannot exceed 10000. |
Source | String | optional | Mail carrier | Log source, typically identified by the machine IP. |
Name | Type | Required | Example | Description |
Name | Type | Required | Example | Description |
Key | String | Required | Tap1 | The field name (key) of a field in a single log. Key is a UTF-8 encoded string, supporting letters, numbers, spaces, underscores (_), hyphens (-) and slash (/), and does not support underlining (_) begins, begins or ends with a whitespace. The string size is 1 to 128 bytes. |
Value | String | Required | Person-A | The field content (value) of a field in a single log. |
Error Code | HTTP status code | Message | Description |
Error Code | HTTP status code | Message | Description |
InvalidArgument | 400 | Invalid argument key% s, value% s, please check argument. | Parameter is invalid. |
DeserializeFailed | 400 | Deserialization failed, please check argument. | Deserialization failed. |
InvalidArgument | 400 | Parameter count is less than 2 | In addition to ProjectID and TopicID, the Get request cannot have fewer than two keys. |
TopicNotExist | 404 | Topic does not exist. | The journal topic does not exist. |
InternalServerError | 500 | We encountered an unexpected server error, please try again later. | Internal server error. |