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 Object Store 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

Parameters

ALIAS

Required

The alias of the 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 minio1.

mc admin logs --last 5 myminio node1

Show Application Type Log Entires for a Deployment

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

mc admin logs --type application minio1
All rights reserved 2024-Present, MinIO, Inc.