linux logrotate - quản lý log server nginx docker systemd

Linux logrotate: cấu hình rotate log cho Nginx, Docker và systemd

## Facebook caption — techsysad

Server chết vì `/var` full 100%? Thủ phạm rất hay là log.

Bài mới trên techsysad:
– Cấu hình Linux logrotate cho Nginx + app log
– Khi nào dùng `copytruncate`, khi nào nên `postrotate reload`
– Docker logs: dùng `max-size` / `max-file`, không logrotate trực tiếp JSON log
– systemd journal: dùng `journalctl –vacuum-*`
– Checklist test bằng `logrotate -d`

Link bài: {POST_URL}

#linux #sysadmin #logrotate

Leave a Comment

Your email address will not be published. Required fields are marked *