Important Update: Cohesity Products Knowledge Base Articles
All Cohesity Knowledge Base Articles are now managed via the Cohesity Support Portal: https://support.cohesity.com/s/searchunify. The Knowledge Base articles available here will not reflect the latest information or may no longer be accessible.
Description
CloudPoint 2.2 has made some enhancement with the logging. The logs are not longer stored in /cloudpoint/logs, but instead they are stored in MongoDB. To view the logs, CloudPoint 2.2 provides a tool called flexsnap-log.
!!!Note: This does not apply to CloudPoint 8.3 or higher or NetBackup Snapshot Manager.
Log Viewer Utility
A logging utility has been added. Here is the command to be used for obtaining logs
# docker exec flexsnap-coordinator flexsnap-log -h
Usage: flexsnap-log.py [-h] [-n LIMIT] [-t] [-F FMT] [-v] [-j] [-d DAYS]
[-f FILE]
[service [service ...]]
flexsnap-log utility.
positional arguments:
service Display the logs of the specified services
optional arguments:
-h, --help show this help message and exit
-n LIMIT, --limit LIMIT
Display last N log messages
-t, --tail Follow or tail the log messages
-F FMT, --format FMT Output format, example:"-F {container_name}: {log}"
-v, --verbose Display verbose logs
-j, --json Display the logs in the JSON format
-d DAYS, --days DAYS Display the last number of days logs
-f FILE, --file FILE Dump logs to the given file: '-f filename'
Log of a specific <flexsnap-service>:
# docker exec flexsnap-coordinator flexsnap-log <flexsnap-service>
Consolidated log of all services:
# docker exec flexsnap-coordinator flexsnap-log
Sample output -> <service>: <log>
flexsnap-telemetry: Jan 14 15:44:37 be99493d1e6a flexsnap-telemetry[1] MainThread flexsnap.service: INFO - Not generating certificate. Join token not passed for role telemetry
flexsnap-notification: Jan 14 15:44:38 c8b1805e19e9 flexsnap-notification[1] MainThread notification: INFO - Not generating certificate. Join token not passed for role notification
flexsnap-indexingsupervisor: Jan 14 15:44:37 e7e18d91b57d flexsnap-indexingsupervisor[1] MainThread indexingsupervisor: INFO - Not generating certificate. Join token not passed for role indexingsupervisor
flexsnap-policy: Jan 14 15:44:37 4d38b36392e8 flexsnap-policy[1] MainThread policy: INFO - Not generating certificate. Join token not passed for role policy
flexsnap-scheduler: Jan 14 15:44:35 59ba13678acb flexsnap-scheduler[1] MainThread scheduler: INFO - Not generating certificate. Join token not passed for role scheduler
flexsnap-onhostagent: Jan 14 15:44:34 f27d98126c3d flexsnap-agent-onhost[1] MainThread agent: INFO - Not generating certificate. Join token not passed for role agent
flexsnap-agent: Jan 14 15:44:33 213096c45b09 flexsnap-agent-offhost[1] MainThread agent: INFO - Not generating certificate. Join token not passed for role agent
flexsnap-coordinator: Jan 14 15:44:34 9543f5ef4583 flexsnap-coordinator[1] MainThread coordinator: INFO - Not generating certificate. Join token not passed for role coordinator