mc admin trace

Description

The mc admin trace command displays API operations occurring on the target MinIO deployment.

Examples

Monitor All API operations

Use mc admin trace to monitor API operations on a MinIO deployment:

mc admin trace -a ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.

See Calls that Return 503 Errors

Use mc admin trace to monitor API operations that return a service unavailable 503 error:

mc admin trace -v --status-code 503 ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.

See Console Trace for a Path

Use mc admin trace to monitor activity for a specific path:

mc admin trace --path my-bucket/my-prefix/* ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.
  • Replace my-bucket/my-prefix/* with the bucket, prefix, and object name or wildcard you wish to trace.

See Console Trace for a Response Size Greater than 1Mb

Use mc admin trace to monitor responses over a specific size:

mc admin trace --filter-response --filter-size 1Mb ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.
  • Replace 1Mb with the desired response size.

See Console Trace for a Request Operation Durations Greater than 5ms

Use mc admin trace to monitor long operations:

mc admin trace --filter-duration --filter-size 5ms ALIAS
  • Replace ALIAS with the alias of the MinIO deployment.

Syntax

mc admin trace has the following syntax:

mc admin trace [FLAGS] TARGET

mc admin trace supports the following argument:

TARGET

mc-cmd

Specify the alias of a configured MinIO deployment for which to monitor API operations.

--all, a

mc-cmd

Returns all traffic on the MinIO deployment, including internode traffic between MinIO servers.

--call

mc-cmd

Traces only matching client operation or call types. For example, the following command only traces operations of the type scanner.

mc admin trace --call scanner TARGET

Valid call types include:

  • batch-keyrotation
  • batch-replication
  • bootstrap
  • decommission
  • ftp
  • healing
  • ilm
  • internal
  • os
  • rebalance
  • replication-resync
  • s3
  • scanner
  • storage

If not specified, MinIO returns call types of s3.

--errors, e

mc-cmd

Returns failed API operations only.

--filter-request

mc-cmd

Trace client operations or calls with request size greater than the specified --filter-size value.

Must be used with --filter-size flag.

--filter-response

mc-cmd

Trace client operations or calls with response size greater than the specified --filter-size value.

Must be used with --filter-size flag.

--filter-size

mc-cmd

Size limit of a filtered client operation or call.

Must be used with either --filter-request or --filter-response flag.

Valid units include:

SuffixUnit Size
kKB (Kilobyte, 1000 Bytes)
mMB (Megabyte, 1000 Kilobytes)
gGB (Gigabyte, 1000 Megabytes)
tTB (Terrabyte, 1000 Gigabytes)
kiKiB (Kibibyte, 1024 Bites)
miMiB (Mebibyte, 1024 Kibibytes)
giGiB (Gibibyte, 1024 Mebibytes)
tiTiB (Tebibyte, 1024 Gibibytes)

--funcname

mc-cmd

Returns calls for the entered function name.

--method

mc-cmd

Returns call of the specified HTTP method.

--node

mc-cmd

Returns calls for the specified server.

--path

mc-cmd

Returns calls for the specified path.

--request-header

mc-cmd

Returns calls matching the supplied request header.

--request-query

mc-cmd

Returns calls matching the supplied request query parameter. This debug option should only be used at the direction of MinIO Support.

--response-duration

mc-cmd

Trace calls with response duration greater than the specified value.

--response-threshold

mc-cmd

Takes a time string as a value, such as 5ms. Returns only calls with a response time greater than the supplied threshold.

If not specified, MinIO returns calls with a response time greater than 5ms.

--status-code

mc-cmd

Returns calls of the specified HTTP status code.

--stats

mc-cmd

Accumulates aggregated statistics for each traced function call during the current trace session.

The output table includes the following columns.

Call

The name of the captured client operation or function.

Count

The number of times the client operation or call occurred.

RPM

The Rate Per Minute (RPM) of the client operation or call.

Avg Time

The average time required for the client operation or call to complete.

Min Time

The minimum time spent for the client operation or call to complete.

Max Time

The maximum time spent for the client operation or call to complete.

Avg TTFB

The average Time To First Byte (TTFB) for the client operation or call response.

Max TTFB

The maximum Time To First Byte for the client operation or call response.

Avg Size

Average size of client operation or call responses.

Errors

The number of client operations or calls that failed with an error.

RX Avg

The average number of Bytes Received (RX) for the client operation or call. This stat only displays if not zero (0).

TX AVG

The average number of Bytes Sent (TX) for the client operation or call. This stat only displays if not zero (0).

Accumulate stats, such as name, count, duration, min time, max time, time to first byte, or errors. Accumulates up to 15 stat entries.

--verbose

mc-cmd

Returns verbose output.

Global Flags

This command supports any of the global flags.

Last modified August 2, 2026: init commit (8338d5b)

Portions of this page are adapted from the MinIO Object Storage Documentation, © 2020–Present MinIO, Inc., licensed under CC BY 4.0, converted and maintained by the Silo project. Attribution