Log rotation of User logs (/home/username/logs)

schoeps

Well-Known Member
Sep 22, 2004
118
10
168
Is there an easy way to set the cap for these log files or just delete them en masse? It's unreasonable to deal with a logfile over a few megs and from time to time, users are hitting their disk cap because of these unruly logs.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,558
2,610
363
cPanel Access Level
Root Administrator
Hey there! I'm not finding anything about an easy way to rotate these since these aren't controlled by logrotate by default. A custom logrotate script for each user sounds like quite a bit of work, so I like the idea of a feature request to see if we can come up with something better.