Just wanted to share with the community something I noticed last week while I was backing up my Ghost content’s folder with rsync.
rsync would hang as it moved the logs directory; looking further into it, my Ghost access log had grown to several gigabytes and was continuing to grow.
Ultimately the cause is the lack of a
logrotate configuration for the Ghost logs. After troubleshooting and testing my config this weekend, I am comfortable enough releasing it to the community. Hopefully this helps someone else out:
Note that this is only a concern for self-hosted instances of Ghost.