mc admin console 命令用来返回部署中每个 MinIO 服务器的服务器日志条目。语法如下:
C:\>mc admin console -h
NAME:
mc admin console - show console logs for MinIO server
USAGE:
mc admin console [FLAGS] TARGET [NODENAME]
FLAGS:
--limit value, -l value show last n log entries (default: 10)
--type value, -t value list error logs by type. Valid options are '[minio, application, all]' (default: "all")
--config-dir value, -C value path to configuration folder (default: "C:\\Users\\Administrator\\mc")
--quiet, -q disable progress bar display
--no-color disable color theme
--json enable JSON lines formatted output
--debug enable debug output
--insecure disable SSL certificate verification
--help, -h show help(1)显示别名为“play”的 MinIO 服务器的控制台日志
C:\> mc admin console play(2)显示 MinIO 服务器上节点“node1”的最后 5 个日志条目,别名为“cluster1”
C:\> mc admin console --limit 5 cluster1 node1(3)在 MinIO 服务器上显示应用程序错误日志,别名为“play”
C:\> mc admin console --type application play