Get device log list
HTTP Request URL: http(s)://api.thingboot.com/{AppID}/device/log/?sign={sign}&ts={ts}
About the sign and ts definition
Or
MQTT Publish Topic: api/{AppID}/device/log
The returned results are also received on the same topic.
Request parameters
| Name | Required | Type | Description |
|---|---|---|---|
| device | Yes | int | Device ID; only the ID of one device can be specified. |
| date | No | string | Date format: YYYY-MM-DD, for example: 2022-02-02. If not provided, it defaults to the current day.
Due to the massive volume of logs generated by devices, the platform stores device logs on a daily basis, so cross-day queries are currently unavailable. If you need to query logs from multiple days, please perform separate queries;
Additionally, due to data archiving reasons, device logs older than one year may not be retrievable. |
| type | No | string | Log types, optional values:
Input Value Corresponding Name
----------------------------
connect => Establish connection
disconnect => Disconnect
subscribe => Topic subscription
unsubscribe => Unsubscribe
register => Device registration
ota => OTA
control => Interface control
event => Trigger event
-----------------------------
Multiple values can be entered at once; for example, to obtain logs related to connections, enter connect,disconnect.
If no value is provided, logs of all types are returned by default. |
| page_index | No | int | Page number, default 1 |
| page_size | No | int | Default is 10 items, can be set to 20, 30, or 50. |