Logs

Send log lines from the device; they appear in the device Logs page.

TopicDirection
things5-production/v1/devices/{device_id}/logs/ingest_reqDevice → Things5
things5-production/v1/devices/{device_id}/logs/ingest_resThings5 → device

Device → Things5: logs/ingest_req

Send device data to the platform.

things5-production/v1/devices/<device-id>/logs/ingest_req

Payload

{
    "request_id": "UUID",
    "logs": [
        ["1667451579000", "foo"],
        ["1667451580000", "bar"]
    ]
}

Payload Parameters

typedesctiption
logsAn array of arrays composed by a unix timestamp in milliseconds and the log line

Things5 → device: logs/ingest_res

Response for log ingestion request

things5-production/v1/devices/<device-id>/logs/ingest_res

Payload

{
    "request_id": "UUID",
    "errors": [
      "error",'
      "error"
    ]
}

Payload Parameters

typedesctiption
errorsA list of errors, if the list is empty the response is successful