hansmiddelhoek
Verified User
For every domain there is a /var/log/(httpd|nginx)/domains/domain.tld.bytes log which is rotated every day. How can I configure the amount of bytes logs that I want to keep? It seems related to logs_to_keep and I think that the bytes logs are kept twice the value set at logs_to_keep. Example: I set logs_to_keep to 7 on a server and I have 14 domain bytes logs. Another server where I set logs_to_keep to 21 I have 42 domain bytes logs. This takes unnecessary disk space and I would like to be able to set the rotation amount for these bytes logs. Is it necessary to keep more than 1? Maybe a new directadmin.conf value byteslogs_to_keep? Where are the historic bytes logs used for, eg. why do we need /var/log/httpd/domains/domain.tld.bytes.9?