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 Raw Access Logs Problem

Discussion in 'General Discussion' started by PeaceYo, Aug 4, 2014.

  1. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hello Everyone,

    I am new to cPanel/VPS/Dedi and learning one by one. Now I am facing a confusing problem which I am unable to solve.

    In cPanel Raw Access > "Archive Logs in your home directory at the end of each month"

    it shows "each month" that mean the log file size will keep on increasing and its not in rotation of 300MB which is enabled by default. I like to change that "each month" to 24 hours.

    but.. "rotation of 300MB" and "Archive Logs 24 hours/each month" which is for what ? its confusing :/

    Here many posted the same question but those threads doesn't have any solution to fix this.

    In WHM > Delete each domain’s access logs after stats run is disabled, I changed it because "Visitors" wont show up if its enabled.

    so please help me to change "each month" to "24 hours", I just want the logs to archive in small size, not "a month" size, it will be GB's!!

    my WHM version is 11.44.1 (build 7)

    Thank you...
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please let us know which of the following options you have enabled in "WHM Home » Server Configuration » Tweak Settings" under the "Stats and Logs" tab:

    Delete each domain’s access logs after stats run
    Archive logs in the user's home directory at the end of each stats run unless configured by the user
    Remove the previous month's archived logs from the user's home directory at the end of each month unless configured by the user
    Keep log files at the end of the month


    Thank you.
     
  3. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hello Michael, Thank you for the reply, well..

    Delete each domain’s access logs after stats run > OFF
    Archive logs in the user's home directory at the end of each stats run unless configured by the user. [?] > ON
    Remove the previous month's archived logs from the user's home directory at the end of each month unless configured by the user. [?] > ON
    Keep log files at the end of the month [?] > ON

    :)
     
  4. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    ^^ also stats software's are not updating the logs (statistics) , only shows the 27th July the day I started using the VPS for the first time.

    I tried all the stats program but it seems not updating or creating new stats and mistakenly deleted awstats config file and I dont know how to create one :/

    so Analog, Awstats, Logaholic, Webalizer none of them are working :/
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you see data populated to the Apache domlogs in the /usr/local/apache/domlogs directory? If so, do you notice any errors in /usr/local/cpanel/logs/stats_log during the statistics generation?

    Thank you
     
  6. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    in /usr/local/apache/domlogs it shows this..

    ./ ../ ftp.mydomain.net-ftp_log.offsetftpbytes ftpxferlog ftpxferlog.offset ftpxferlog.offsetftpsep mydomain/ mydomain.net

    only one line and in mydomain/ > mydomain.net

    also.. how to open/view that "stats_log" ? in /usr/local/cpanel/logs/stats_log

    there is stats_log but how to check that? :/

    I can download both Apache (WHM) and Cpanel Raw Access logs, it seems both are same coz when i downloaded the file, the size is around 65 MB each but Cpanel RAW access shows more than 470MB but only able to download 65MB i.e last 4 hours stats.

    I really hate this Cpanel log stuff :/ I know that I don't have much knowledge in this but its not so friendly for new users.. who jumping from shared hosting. :/

    VPS bandwidth shows more than 100GB per day, I have no idea how to check in Cpanel or WHM to confirm this :(
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you sure you have root access to this server? If so, please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  8. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    I opened a ticket (ID: 5310933)

    Its asking for server login information and such, is this okay? I am just worried.

    I unticked the login info part to give access later.

    please someone tell me how this process go..
     
  9. cPMatthewV

    cPMatthewV Quality Assurance Analyst
    Staff Member

    Joined:
    Apr 11, 2014
    Messages:
    21
    Likes Received:
    15
    Trophy Points:
    3
    Location:
    Houston, Tx
    cPanel Access Level:
    Root Administrator
    Hello,

    We have a video tutorial on how to use our Ticket System. This should help in creating a ticket and providing us with access during ticket creation and afterwards. Please note your server's login information is stored securely and we use an automatic login process to login.

    This video tutorials covers these topics:

    How to Submit a Ticket ( http://go.cpanel.net/ticketsystemguide )

    How to Grant Support Access ( http://go.cpanel.net/grantsupportaccess )

    How to Update Server Authentication Information ( http://go.cpanel.net/updateticketsystem )

    How to Revoke Access ( http://go.cpanel.net/revokeaccess )

    I hope this helps you. If you have any further questions let us know.
     
  10. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update this thread, it appears that a custom Apache template was used that had the CustomLog directive commented out.
    We moved the custom template out of the way and ran EasyApache which then used the default templates (in /var/cpanel/templates/apache2) and that fixed the issue with the logging.
     
  11. PeaceYo

    PeaceYo Member

    Joined:
    Aug 4, 2014
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Yes, now log is working but still I am confused with stats program which is not showing up in cPanel and log rotation (300MB) not happening but Raw Access seems to rotating the log on its own size.

    but I really appreciate Peter for helping me. He logged in, found that problem and changed it. Which I don't have any knowledge about.

    I didn't closed the ticket (which it closed automatically now) because I was checking the log rotation, if its working per day or month and I am completely lost interest in stats program, only checking the logs. so if anything, will open the ticket. :)

    Thank you very much Peter and other cPanel support staffs. :)
     
Loading...

Share This Page