Log Rotation Setup
Run the Log Rotation Setup Script
On the host, run:
sudo ./scripts/setup-log-rotation.shThis creates:
Log directory:
/var/log/hivel/Daily cron job at midnight to rotate logs
7-day retention policy for all container logs
Verify Setup
Run: sudo crontab -l /
Success: Output lists the log rotation job Failure: See Log rotation not working in Troubleshooting.
Log File Locations
Logs are stored in the following pattern:
/var/log/hivel/<service-name>/<service-name>-YYYY-MM-DD.logViewing Logs
View today's logs for a service:
cat /var/log/hivel/auth-svc/auth-svc-$(date +%Y-%m-%d).log
tail -f /var/log/hivel/auth-svc/auth-svc-$(date +%Y-%m-%d).log
docker logs -f auth-svcLast updated