Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by johnburk, Nov 6, 2010.

  1. johnburk

    johnburk Well-Known Member

    Jun 23, 2006
    Likes Received:
    Trophy Points:
    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.
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Nov 5, 2008
    Likes Received:
    Trophy Points:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    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.

Share This Page