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.

How to set access-logs files from /usr/local/apache/domlogs to be daily archived

Discussion in 'EasyApache' started by nicolass, Dec 10, 2013.

  1. nicolass

    nicolass Member

    Joined:
    Jan 22, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,
    can you please tell me hot to set access log files to be daily archived.

    I have access-logs in:

    /usr/local/apache/domlogs/WEBSITENAME/websitename.com


    And I see that this access log keep log only for one day. How can I set that log files can be archived every day?

    I look in /etc/logrotate.d and I dont see there file with name "apache".

    How I can set this via cPanel or via shell, no matter
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    in cPanel-> Logs-> Raw Access Log:
    "Archive logs in your home directory at the end of each stats run[ [every 24 hour(s)~]] "
     
Loading...

Share This Page