Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: d2db on November 19, 2017, 06:02:07 PM

Title: Rotation logs in CWP
Post by: d2db on November 19, 2017, 06:02:07 PM
I have a suggestion. Maybe you need to use rotation logs, because when many people visit a sites, the log file has a very large size.

My rotation configuration in "/etc/logrotate.d/cwp"
Code: [Select]
/usr/local/apache/logs/*_log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
/bin/kill -HUP `cat /usr/local/apache/logs/httpd.pid 2>/dev/null` 2> /dev/null || true
    endscript
}
Title: Re: Rotation logs in CWP
Post by: Tinhtiennet on July 06, 2019, 03:11:00 AM
Thank you for giving me a script for apache / logs entries. What about the rotation problem in apache / domlogs?
Title: Re: Rotation logs in CWP
Post by: studio4host on July 06, 2019, 11:33:32 AM
cwp is planning to have soon integration with stats/graphs then this functionality will also handle logs.