Logs not being rotated on dedicated server

On a DreamHost dedicated server, I noticed that the web server’s log files (/home/USER/logs/DOMAIN/https/access.log, /home/USER/logs/DOMAIN/https/error.log) are not being rotated. Normally, on a shared or VPS server, the log files get rotated daily, and 5 previous days of logs are kept, so you end up with something like this:

access.log
access.log.2021-02-17.gz
access.log.2021-02-18.gz
access.log.2021-02-19.gz
access.log.2021-02-20.gz
access.log.2021-02-21
error.log
error.log.2021-02-17.gz
error.log.2021-02-18.gz
error.log.2021-02-19.gz
error.log.2021-02-20.gz
error.log.2021-02-21

However, on this dedicated server, the access.log and error.log files have just been growing and growing since we launched the server a few months ago (the access.log is now 25 gigabytes!)

Are these logs supposed to be rotated on dedicated servers too?

Any ideas how to troubleshoot this?

Interesting… I wondered how that was set up (or not) on dedi servers. Have you asked support?

I haven’t contacted support about it yet - I probably will eventually if no one has any ideas here.

You might check the Raw Log settings in the Site Statistics part of the Panel. Maybe it has special settings for Managed-Dedicated Servers?

https://panel.dreamhost.com/index.cgi?tree=advanced.stats

That is insane.

Failing any Panel settings that might be particular to dedicated servers, you could write a crontab to gzip daily at midnight – or better yet get Support to provide one for you as that stuff should be already implemented.