Introduction
This document describes how log viewing works in the UI: which backend APIs are used, what options you can pass (including lines / tail size), and where to open each view.
All log endpoints are served by the collector HTTP API and require authentication (same session as the rest of the app).
API Requests
Paths below are relative to the collector API root : https://<CVT_IP>/cablevalidation/
Collector Logs API:
|
Method |
Path |
Purpose/Output |
|---|---|---|
|
|
|
JSON array of allowed |
|
|
|
Last N lines as plain text ( |
|
|
|
Full collector log file is downloaded from browser. |
Query Parameter
|
Parameter |
Applies to |
Description |
|---|---|---|
|
|
|
Number of lines from end of file. Default 100, max 1000. For lines more than 1000 user will have to download the whole file. |
log_type values
|
|
Log name (under <cable_bringup_root>/log/) |
|---|---|
|
bringup_collector |
|
|
agents |
|
|
apache2_access |
|
|
cv_controller_service |
|
|
cvt_service |
|
|
supervisord |
|
Example
GET /logs/collector/
GET /logs/collector/bringup_collector/tail?lines=500
GET /logs/collector/cv_controller_service/download
Agent Logs API
There are two log types per agent, both under <cable_bringup_root>/log/agents/<hostname>/ on the collector: Agent log — ongoing runtime and cable-validation output (<hostname>.log); Deployment log — output from deploy / remove agent operations on that node (deployment.log).
|
Method |
Path |
Purpose/Output |
|---|---|---|
|
|
|
JSON list of agent names that have log directories.
|
|
|
|
Last N lines of the agent log ( |
|
|
|
Full agent log file is downloaded from browser. |
|
|
|
Last N lines of deployment.log ( |
|
|
|
Full agent deployment log file is downloaded from browser. |
Query Parameter
|
Parameter |
Applies to |
Description |
|---|---|---|
|
|
|
Number of lines from end of file. Default 100, max 1000. For lines more than 1000 user will have to download the whole file. |
Example
GET /logs/agents/sw-hdr-proton01/tail?lines=300
GET /logs/agents/sw-hdr-proton01/deployment/tail?lines=100
GET /logs/agents/sw-hdr-proton01/download
Last updated: