Syntax
Commands
| Command | Description |
|---|---|
size | Check log file sizes on Lager Box(es) |
clean | Clean old log files from Lager Box |
docker | Check Docker container log sizes |
Command Reference
size
Check log file sizes on one or all Lager Boxes.
--box BOX- Specific Lager Box (if not specified, checks all)--verbose/-v- Show individual log files
clean
Remove old log files from a Lager Box.
--box BOX(required) - Lager Box to clean--older-than DAYS- Remove logs older than N days (default: 1)--yes- Skip confirmation prompt
docker
Check Docker container log sizes.
--box BOX(required) - Lager Box to check--container NAME- Specific container (default: all)
Log Rotation
Docker containers use automatic log rotation:- Maximum size: 10 MB per file
- Maximum files: 3 (rotates oldest)
Size Thresholds
Thesize command uses warning thresholds:
| Size | Status |
|---|---|
| < 500 MB | Normal |
| 500 MB - 1 GB | Warning (⚠) |
| > 1 GB | Critical (🔴) |
What Gets Cleaned
Theclean command removes:
- System logs in
/var/log/ - Lager application logs
- Old rotated log files (
.log.1,.log.gz, etc.)
- Current log files
- Docker container logs (managed separately)
- Files newer than
--older-thanthreshold
Automation
Schedule regular log cleaning:Examples
Notes
- Log cleaning requires SSH access to the Lager Box
- Docker logs are automatically rotated
- Use
--verboseto identify large log files - Regular cleaning prevents disk space issues

