For the complete documentation index, see llms.txt. This page is also available as Markdown.

Log Rotation Setup

Run the Log Rotation Setup Script

On the host, run:

sudo ./scripts/setup-log-rotation.sh

This 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.log

Viewing 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-svc

Last updated