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 clear Logs file on cpanel -- home/user/logs

Discussion in 'General Discussion' started by AryanIct, Sep 11, 2012.

  1. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Is it safe to delete logs files on cpanel user?

    home/user/logs

    Regards,
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you mean the access-logs symlink at /home/user location or an actual folder called logs in /home/user?

    I don't see any folder by that name on my machine and it isn't a typical folder we create.

    As for the access-logs symlink, that would not be advised to remove.

    Thanks!
     
  3. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I have attached the screenshot of that folder on cPanel File Manager.

    scr.png

    Thank You!
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I have that directory (created Aug 2007) on several old accounts (not all), the directory empty. What's in this one on your account, have you looked to check dates on files in it, or contents of the files for clues as to what they are?
     
  5. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    Yes i have check the file on that directory.

    That directory is updating their files each month by this gz format

    domain.com-Apr-2012.gz

    I have downloaded the file but can't open it.

    COM-APR-2012 File (.com-Apr-2012)

    Regards,
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,466
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Interesting. Do you have any cronjobs setup on that account? Have a look here for those:

    cPanel > Advanced section > Cron Jobs

    Do you have root access to this server or no? If yes, you might benefit from opening a ticket to cPanel Support. If no, you might ask your Hosting Provider to take a closer look at the logs to see whats generating these files.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    All right, I now know what is causing it as I don't normally check that option, but once the file's name was mentioned, it was clear these are the logs in cPanel > Raw Access Logs area. If you click:

    Then this will save those folders for you on a monthly basis. If you don't click this:

    Then they won't be removed. If you don't want to keep the raw access logs from Apache historically, then first go to cPanel > Raw Access Logs and check "Remove the previous month's archived logs from your home directory at the end of each month" so they are getting removed going forward.

    If you want to remove the older access logs, you can remove them in that directory.
     
  8. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank You so much :)

    I have just removed all of them.

    Regards,
     
Loading...

Share This Page