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!

Keep Access Log files data history for more than 24h

Discussion in 'General Discussion' started by philas, Sep 25, 2018.

  1. philas

    philas Member

    Joined:
    Jan 24, 2018
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    netherland
    cPanel Access Level:
    Root Administrator
    Hello there,

    For tracking of SEO effectiveness on the server level I want to keep access-logfiles for a certain domain on a cpanel server for longer than 6 month.

    I already went through various forum posts and consecutively through the tweak settings and enabled archiving on the domain level but data for logfiles ist not exceeding 24 hours.

    Is there any way to configure cpanel to keep access loges for more than 6 month?

    Thank you for helping!

    Phil
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,456
    Likes Received:
    503
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @philas


    While the logs may be removed from /etc/apache2/domlogs/ pending you have the following set to default in WHM>>Server Configuration>>Tweak Settings:

    Code:
    Archive logs in the user's home directory at the end of each stats run unless configured by the user.
    and the following unchecked at cPanel>>Metrics>>Raw Access:

    Code:
    Archive log files to your home directory after the system processes statistics. The system currently processes logs every 24 hours.
     Remove the previous month’s archived logs from your home directory at the end of each month. 
    The logs should be archived in the user/s home directory at /home/$user/logs/ as well as be present in Raw Access indefinitely

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice