Create EMQX Trace
emqx_create_traceStart capturing MQTT packets for a client, topic, or IP to diagnose why connected devices send no data. Specify the target to trace and let it run to completion.
Instructions
Start capturing MQTT packets for one client, topic or IP.
Traces are the tool for "the device connects but nothing arrives". Note the capture buffers in memory and only flushes to disk when it expires — let it run to completion before reading the log, and do not delete it early or the buffered events are lost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique trace name; you will reuse it to read the log. | |
| target | Yes | The client id, topic filter or IP to capture. | |
| target_type | Yes | What to trace on. | |
| duration_seconds | No | How long to capture for. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||