mc admin logs

The output is similar to what is available via journalctl -uf minio for systemd-controlled deployments.

Use the mc admin logs command to show AIStor Server logs.

To enable or disable the sending of logs to SUBNET for support, use mc support callhome.

The uploading feature remains disabled by default until explicitly enabled for a deployment on an opt-in only basis.

Syntax

The following command displays the most recent ten server logs of any type for the alias myaistor.

mc admin logs myaistor

The command has the following syntax:

mc admin logs [GLOBAL FLAGS]     \
              [--last, -l value] \
              [--type, -t value] \
              ALIAS              \
              [NODE]
  • Brackets [] indicate optional parameters.
  • Parameters sharing a line are mutually dependent.
  • Parameters separated using the pipe | operator are mutually exclusive.

Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.

Parameters

ALIAS

Required

The alias of the MinIO AIStor deployment.

--last

Alias: -l

Optional

Show only the most recent specified number of log entries.

If this flag is not included, up to the last 10 log entries show.

--type

Alias: -t

Optional

List log entries of a specified type. Valid types are minio, application, or all.

If not specified, all log entry types show.

NODE

Optional

In distributed deployments, specify which node’s logs to show by entering the node’s name.

Global Flags

This command supports any of the global flags.

Examples

Show last 5 log entries for a node

The following command shows the most recent five log entries for a node1 on the deployment with alias myaistor.

mc admin logs --last 5 myaistor node1

Show application type log entries for a deployment

The following command shows log entries of the type application for all nodes on the deployment with alias myaistor.

mc admin logs --type application myaistor

On this page