logging

Configure Docker container logging drivers and Kamal deployment output loggers.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/donnfelker/kamal-skills --skill logging-donnfelker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging
Source: https://github.com/donnfelker/kamal-skills/tree/main/skills/logging
Command: npx skills add https://github.com/donnfelker/kamal-skills --skill logging-donnfelker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves the complexity of managing Docker container logging drivers and Kamal's own deployment output, preventing disk space issues and ensuring proper observability of your infrastructure operations.

Core Features & Use Cases

  • Container Log Management: Configure Docker logging drivers and log-opt settings to prevent disk exhaustion by capping log sizes.
  • Deployment Observability: Route Kamal deployment logs to OpenTelemetry endpoints or local files for auditability.
  • Use Case: If your server disk is filling up due to massive Docker logs, use this skill to set a max-size limit on the json-file logging driver.

Quick Start

Use the logging skill to configure the Docker logging driver to json-file with a maximum size of 100 megabytes.

Frequently Asked Questions about logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I limit Docker container log size to prevent disk exhaustion?

You can prevent disk exhaustion by configuring the Docker json-file logging driver with a max-size log-opt parameter, capping container log files at a specified limit like 100 megabytes.

How do I configure Kamal deployment logging for auditability?

You can configure Kamal deployment logging by routing output logs to local files or OpenTelemetry endpoints, ensuring your infrastructure deployment operations are captured and auditable.

Does Kamal support sending deployment logs to OpenTelemetry?

Yes, Kamal supports sending deployment logs to OpenTelemetry endpoints, enabling you to integrate deployment observability directly into your existing infrastructure monitoring and logging stack.

What Docker logging driver settings should I use for log rotation?

For Docker log rotation, use the json-file logging driver and apply log-opt parameters like max-size and max-file to automatically rotate and cap container logs, optimizing disk space.

Why is my server disk filling up with Docker container logs?

Your server disk is filling up because Docker containers are generating massive logs without size limits. Apply a max-size configuration on the json-file logging driver to cap log growth.