docs
Install the CLI, then wrap any command that prints logs.
Install the CLI:
$curl -fsSL https://codag.ai/install.sh | sh
Then wrap any command that prints logs. Codag captures the output, compresses it, and prints the lines that matter to stdout.
# Kubernetes
codag wrap -- kubectl logs deploy/api --since=1h
# Vercel
codag wrap -- vercel logs <deployment-url>
# AWS CloudWatch
codag wrap -- aws logs tail /aws/lambda/my-fn --since 1h
# Docker Compose
codag wrap -- docker compose logs --since 1h
# systemd journal
codag wrap -- journalctl -u my-service --since "1 hour ago"