Get Container Stats
get_container_statsGet buffer statistics for a container or all containers, including line counts by log level, trace IDs, and oldest/newest timestamps, to quickly assess log health before deeper investigation.
Instructions
Return buffer statistics for one or all containers: total lines buffered, error/warn counts, known trace IDs, and oldest/newest timestamps.
Args:
service_name (string, optional): A specific service to inspect. Omit for all.
Returns: Per-container stats including line counts by level and a sample of known trace IDs. Useful for a quick health overview before deeper investigation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_name | No | Container name or Compose service name. Omit to get stats for all containers. |