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!

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:
    51
    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,608
    Likes Received:
    32
    Trophy Points:
    238
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. AryanIct

    AryanIct Member

    Joined:
    Apr 2, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    51
    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:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. AryanIct

    AryanIct Member

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

    Thank You so much :)

    I have just removed all of them.

    Regards,
     
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