You can use the pdbcli dump command to dump the logs for each component.
Run the following command to dump the logs for the cluster components to the database folder:
pdbcli dumpRun pdbcli help dump or pdbcli dump --help to view help information for the dump command:
Using config file: ./config.yaml
Dump PolarDB components' logs and metrics.
For example:
pdbcli dump
Usage:
pdbcli dump [flags]
Flags:
-h, --help help for dump # Get help for the dump command.
Global Flags:
--config string Specify Config file. (default "./config.yaml") # Specify the configuration file. The default is ./config.yaml.
--debug Enable additional output for debugging. # Display additional output for debugging.该文章对您有帮助吗?