Is there a way to have domain access logs (domlogs) archived every month?

johnburk

Well-Known Member
Jun 23, 2006
241
0
166
Is there a way to have the domlogs files archived every month?

Currently cPanel has the option to have them deleted after processing. But I cannot find an option to have then archived the way apache log files are archived after the reach a certain size.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Is there a way to have the domlogs files archived every month?

Currently cPanel has the option to have them deleted after processing. But I cannot find an option to have then archived the way apache log files are archived after the reach a certain size.
Monthly archiving is possible by enabling the following option: cPanel: Main >> Logs >> Raw Access Logs >> Configure Logs >> Archive logs in your home directory at the end of each stats run

Related posts:

In addition to the aforementioned option in cPanel, domain access logs (domlogs) can be rotated monthly if the following two options, set via WebHost Manager, are configured as shown below: WHM: Main >> Server Configuration >> Tweak Settings >> Stats and Logs
  • Delete each domain’s access logs after stats run
    • On (default)
    • Select: Off
  • Keep monthly log files [?] Keep log files at the end of the month (Off is the default because you can run out of disk space quickly)
    • Select: On
    • Off (default)

For additional important information please read the following PDF document entitled cPanel & WHM Log Processing and Configuration (.pdf), from the Version 11.25 Release Notes; in the PDF, please see section 3.2., "Rotation & Retention," on pages 5 and 6, and section 4.2., "Log Rotation" and more narrowly "Domain Log Rotation," on page 9.