Activities and events from Cloud Discovery & Visibility (CDV) are logged in log files. These logs include errors and failures, but can also include successful and unsuccessful connections, starting and stopping of visibility and discovery jobs, and more.
By default, CVD logs events at the WARNING level. This includes logs of warnings, errors, and critical events, but not debug or informational events.
CDV stores log files in the logging directory you configured when you installed CDV. You can also download logs from CDV directly.
To view a log of CDV messages and notifications:
- Click the Notifications bell icon and select Show
Logs.
The Logs window opens overtop the main screen, where you can view a recent history of log messages and notifications.
Tip: To refresh the list of logs, click the Refresh button.
-
If you haven't already done so, open the Logs window. (Click the Notifications bell button in the top right corner.)
-
In the top right corner of the Logs window, select the new logging level and click Update.
You can choose from all standard Python logging levels (NOTSET, DEBUG, INFO, WARNING, ERROR, or CRITICAL).
Note: NOTSET is a default Python logging level used by some Python-based tools. For CDV logging, NOTSET is equivalent to WARNING. We recommend you use WARNING instead of NOTSET if possible.Warning: This setting is not a filter. After you change the logging level, any messages that would have been logged with a higher level will not be logged at all.
-
If you haven't already done so, open the Logs window. (Click the Notifications bell button in the top right corner.)
-
Click the Download Logs button.
Tip: You can also download logs from the main User menu. From the CDV UI, click the User icon in the top-right corner and select Download log. -
Browse to the directory where you want to save the log files. Change the file name (if you want) and click Save.
CDV downloads its logs to the indicated location.
To configure logging behaviour from API endpoints:
Use GET or POST with the new /config endpoint.
GET http://<Gateway_url>/cloud-discovery/api/v1/config
{
"log_level": "WARNING",
"max_bytes": 1024,
"backup_count": 10
}
Where each parameter is as follows:
Field/Option | Description |
---|---|
log_level |
The logging level. You can use all standard logging levels (NOTSET, DEBUG, INFO, WARNING, ERROR, or CRITICAL). Note: NOTSET is a default Python logging level used by some
Python-based tools. For CDV logging, NOTSET is equivalent to
WARNING. We recommend you use WARNING instead of NOTSET.
|
max_bytes
|
The The |
For more details about using CDV's REST API endpoints, see REST API endpoints.