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!

cpanel logs

Discussion in 'General Discussion' started by bofla, Sep 22, 2005.

  1. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    151
    Hi all,

    I'm just wondering where are logs from /usr/local/cpanel/logs (access_log, error_log,...) stored after rotation ?

    Thanks
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    By default they are not rotated. However, depending on your WHM > Tweak Server settings they may be created anew and in that case the previous ones are deleted. If you want to keep them you should setup your own rotation of them using logrotate.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Hi Chirpy

    Which options under tweak settings rotate the acces_log etc ?

    1) Delete each domain's access logs after stats run --- are these the logs in domlogs ?

    2) Keep log files at the end of the month (default is off as you can run out of disk space quickly) ---
    which logs is this talking about ??? Please can you specify all the logs this involves.

    Isnt is silly to not rotate the access_log and error_log by default ?


    cheers
    Andy
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    None of them rotate the access or error logs for the cPanel logs (we're not talking about the apache logs here).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    cool..

    I jast wanted to be sure.

    Seems a bit silly for cpanel NOT to rotate the access_log files ??
    surely when they hit 2 gig = BeeeeeG problems...

    Thanks very much :)
    Andy
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    I agree, which is why I always add them as part of logrotate together with all the main apache logs.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    151
    Thanks for the info, I really thought that they are rotated ... Bit weird they are not but hey :) I'll setup log rotation then. (need it because many people say that MySQL is "dropping" their databases on it's own, but access_log shows me that they are actually dropping them and they don't "believe" it)
     
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