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.

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:
    1
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  3. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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).
     
  5. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    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
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    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.
     
  7. bofla

    bofla Member

    Joined:
    Sep 1, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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