trace.rst 569 B

12345678910111213141516171819202122232425262728293031323334353637
  1. emqttd could trace packets received/sent from/to specific client, or trace publish/subscribe to specific topic.
  2. emqttd use lager:trace_file api and write trace log to file.
  3. TODO: NOTICE
  4. Trace client
  5. -------------
  6. ```
  7. ./bin/emqttd_ctl trace client "ClientId" "trace_clientid.log"
  8. ```
  9. Trace topic
  10. -------------
  11. ```
  12. ./bin/emqttd_ctl trace topic "Topic" "trace_topic.log"
  13. ```
  14. Stop Trace
  15. -------------
  16. ```
  17. ./bin/emqttd_ctl trace client "ClientId" off
  18. ./bin/emqttd_ctl trace topic "Topic" off
  19. ```
  20. Lookup Traces
  21. -------------
  22. ```
  23. ./bin/emqttd_ctl trace list
  24. ```