Do I need Docker running?
Do I need Docker running?
What if I don't have permission to access the Docker socket?
What if I don't have permission to access the Docker socket?
Can I use this with Docker Compose?
Can I use this with Docker Compose?
--compose flag to automatically discover and tail all services in a docker-compose.yml file.What log drivers are supported?
What log drivers are supported?
json-file and journald log drivers. Other drivers won’t support real-time streaming.Can I filter out certain log lines?
Can I filter out certain log lines?
--exclude to skip lines matching a regex pattern. Use --mute to hide matching containers from terminal output while still writing them to log files.Can I save logs to files?
Can I save logs to files?
./logs directory (configurable with --output). Each session creates a timestamped directory with combined.jsonl and per-container .jsonl files. A latest symlink always points to the most recent session.What's the difference between --exclude and --mute?
What's the difference between --exclude and --mute?
--exclude completely skips log lines matching the regex — they are not shown in the terminal and not written to files. --mute hides matching containers from terminal output but still writes their logs to files for later analysis.What format are log files in?
What format are log files in?
.jsonl) format. Each line is a valid JSON object with fields like ts, container, stream, and either message (plain text) or the original structured fields (JSON container output). Structured JSON from containers is automatically merged with metadata and levels are normalized. No special flag is needed — JSONL is the default file format.How do I view logs interactively?
How do I view logs interactively?
docker-agent-tail lnav-install, then view logs with:How do I clean up old log sessions?
How do I clean up old log sessions?
clean command to remove old sessions:How do I filter logs by time?
How do I filter logs by time?
--since with a Go duration (e.g., 5m, 1h, 30s) to only show logs from that duration ago:Does this work with TTY-attached containers?
Does this work with TTY-attached containers?
Can I use glob patterns to filter containers?
Can I use glob patterns to filter containers?
web-* matches all containers starting with “web-”.What if I have containers with the same name?
What if I have containers with the same name?
Can I tail logs from a remote Docker daemon?
Can I tail logs from a remote Docker daemon?
DOCKER_HOST environment variable to connect to a remote Docker daemon.How much disk space do logs take?
How much disk space do logs take?
--exclude to reduce file size, and docker-agent-tail clean to remove old sessions.Is there a performance impact on my containers?
Is there a performance impact on my containers?
How do I stop tailing logs?
How do I stop tailing logs?
Ctrl+C in the terminal. This cleanly closes all log streams and exits gracefully.Can I use this in CI/CD pipelines?
Can I use this in CI/CD pipelines?
--output to save logs as artifacts. Use --no-color or --json for cleaner log files when piping to other tools.Why are no logs appearing for my container?
Why are no logs appearing for my container?
docker inspect --format='{{.HostConfig.LogConfig.Type}}' <container>. docker-agent-tail only works with json-file and journald drivers. Other drivers (e.g., syslog, awslogs, fluentd) don’t support Docker’s ContainerLogs API.What are the exit codes?
What are the exit codes?
| Code | Meaning |
|---|---|
0 | Success |
1 | General error |
2 | No containers found matching criteria |
3 | Docker daemon error (connection failed, timeout) |
64 | Usage error (invalid flags or arguments) |
Can I get JSON output on stdout?
Can I get JSON output on stdout?
--json flag to output structured JSON Lines to stdout instead of human-readable format. This is useful for piping to jq or other tools.How do I preview what clean will delete?
How do I preview what clean will delete?
--dry-run to list sessions that would be deleted without actually removing them: