Control Web Panel

WebPanel => Apache => Topic started by: webaits on August 13, 2022, 04:27:55 AM

Title: Apache Log rotator setting for daily logs
Post by: webaits on August 13, 2022, 04:27:55 AM
Apache logs files in the /usr/local/apache/domlogs directory and the log format is [domain.com].log.

Where and what do I put on the server to have log files rotated daily for each day? Like:

Quote
domain.com-13-08-2022.log
domain.com-14-08-2022.log
domain.com-15-08-2022.log
and so on...


anotherdomain.org-13-08-2022.log
anotherdomain.org-14-08-2022.log
anotherdomain.org-15-08-2022.log
and so on...
Title: Re: Apache Log rotator setting for daily logs
Post by: rcschaff on August 16, 2022, 04:41:24 AM
https://linuxconfig.org/logrotate