configured_collect_log
Description
Collects diagnostic logs. Similar to zstack-ctl
collect_log
, the configured_collect_log
command can be
used to collect new logs and view the log size. You can also specify the log
collection time, whether to collect logs of a single management node, database, or
compute node, and whether to collect logs of all nodes.
Usage
Parameter | Description | Example |
---|---|---|
-p | Customizes the YAML configuration file path for log collection. | zstack-ctl configured_collect_log -p
/var/lib/zstack/ |
--check | Only checks and displays the log size without collecting logs. | zstack-ctl configured_collect_log
--check |
--full | (Default) Collects all logs other than database logs, including management node logs, compute node logs, backup storage logs, primary storage logs, and vRouter logs. | zstack-ctl configured_collect_log
--full |
--full-db | Collects all logs, including the database logs. | zstack-ctl configured_collect_log
--full-db |
--mn-db | Collects management node logs, including the database logs. | zstack-ctl configured_collect_log
--mn-db |
--mn-only | Collects only management node logs, excluding database logs. | zstack-ctl configured_collect_log
--mn-only |
--mn-host | Collects management node and compute node logs, excluding database logs. | zstack-ctl configured_collect_log
--mn-host |
--since SINCE | Collects logs within N days (Nd) or N hours (Nh). | zstack-ctl configured_collect_log --since
2d |
--from-date FROM_DATE |
|
zstack-ctl configured_collect_log
--from-date 2018-11-22 |
--to-date TO_DATE |
|
zstack-ctl configured_collect_log
--to-date 2018-11-23 |