Retrieve collector and agent logs over the API — the same content as the Collector Management > Collector Logs page and the agent-log modal (Collector Management). All endpoints require an authenticated session with the admin role.
Collector logs:
-
GET /cablevalidation/logs/collector— list the available log types:bringup_collector,agents,apache2_access,cv_controller_service,cvt_service,supervisord. -
GET /cablevalidation/logs/collector/<log_type>/tail?lines=<n>— last N lines (text/plain). Default 100, maximum 1000; download the full file for more. -
GET /cablevalidation/logs/collector/<log_type>/download— full file.
Agent logs (per device; two kinds — runtime and deployment):
-
GET /cablevalidation/logs/agents— device names that have logs. -
GET /cablevalidation/logs/agents/<name>/tail?lines=<n>— agent runtime log tail. -
GET /cablevalidation/logs/agents/<name>/download— full runtime log. -
GET /cablevalidation/logs/agents/<name>/deployment/tail?lines=<n>/.../deployment/download— the deploy/remove operations log.
Log file locations on disk: Service logs.
Last updated: