logs
The cfy logs
command is used to manage log files on Conductor Manager.
You can use the command to download, backup and purge Conductor Manager service logs.
To use the command you must have the credentials (user and key) set in the local context and must run cfy use -t MANAGEMENT_IP
prior to running the command.
Optional flags
These commands support the common CLI flags.
Commands
backup
Usage
cfy logs backup [OPTIONS]
Create a backup of all logs under a single archive and save it on Conductor Manager under /var/log.
Example
$ cfy logs backup
...
Creating logs archive in manager: /tmp/cloudify-manager-logs_20170330T122201_10.239.0.208.tar.gz
Backing up manager logs to /var/log/cloudify-manager-logs_20170330T122201_10.239.0.208.tar.gz
...
download
Usage
cfy logs download [OPTIONS]
Download an archive containing all of the Conductor Manager service logs.
Optional flags
-o, --output-path TEXT
- The local path to which to save the download.--all-nodes
- Download logs from all nodes in a cluster. CLI cluster profile must be updated with SSH users and keys. Use Cluster Update Profile and Profile Set Cluster to update the profile.
Example
$ cfy logs download
...
Creating logs archive in manager: /tmp/cloudify-manager-logs_20160623T070559_10.10.1.10.tar.gz
Downloading archive to: /home/nir0s/work/local-bootstrap-env
Removing archive from manager...
...
purge
Usage
cfy logs purge [OPTIONS]
Purge all log files on Conductor Manager.
Truncate all logs files under /var/log/cloudify.
This enables you to take extreme measures to clean up data from Conductor Manager. For example, you might choose to run this command when the disk is full due to a bug that has caused the logs to bloat.
The -f, --force
flag is mandatory as a safety measure.
Optional flags
--backup-first
- Creates a backup before purging.
USE WITH CARE!
Log files in Conductor Manager are rotated. cfy purge
is a safety measure in case disk space on Conductor Manager runs out, and should only be used in extreme situations.
Example
$ cfy logs purge -f
...
Purging manager logs...
...