Results 1 to 9 of 9

Thread: Domlogs

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    253
    cPanel/WHM Access Level

    Root Administrator

    Default Domlogs

    I have a subdomain for images.example.com, and really don't need a log for it. But every month, this log file gets very large, and ends up taking up a lot of space in /usr/local/apache/domlogs/. Inevitably, each month I get a warning that /usr/ is getting full, so I have to go delete the archive files and the images.example.com log file.

    Is there a way that I can configure Apache to not create this particular log file? I want the other log files, just not this one.

  2. #2
    Member
    Join Date
    May 2012
    Location
    India
    Posts
    96
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    Quote Originally Posted by GoWilkes View Post
    I have a subdomain for images.example.com, and really don't need a log for it. But every month, this log file gets very large, and ends up taking up a lot of space in /usr/local/apache/domlogs/. Inevitably, each month I get a warning that /usr/ is getting full, so I have to go delete the archive files and the images.example.com log file.

    Is there a way that I can configure Apache to not create this particular log file? I want the other log files, just not this one.
    Have a check at option 1 OR option 2.. This should help.

  3. #3
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,476
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    It sounds like you may have a /usr partition that is really too small. This is one of the disadvantages of having a separate partition for the main directories (/bin, /usr, /var, and so on). When setting up a new server, it is difficult to guess how large the partitions will ever need to be, and very easy to cause this type of situation.

    The problem with trying to disable the domlogs for a domain is that it will completely prevent the stats programs (Analog, Awstats, Logaholic, Webalizer) from giving you any information about the usage on the domain.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation - Find cPanel hosting


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  4. #4
    Member
    Join Date
    Sep 2006
    Posts
    253
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    You're correct on both the cause and the effect; the partition is definitely set too small. When we set up the server, I believe the cPanel recommendation was 8G, so we made it 10G, but now that's not quite enough.

    I don't want to disable domlogs for the entire domain, though; just a specific subdomain. I don't need stats or a full log on the /images/ subdomain.

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    I just want to clarify one thing. Do you have WHM > Tweak Settings > Delete each domain’s access logs after stats run set to On? Because the domlogs for specific domains and subdomains shouldn't be retained for a full month. They should be clearing from that folder on a daily basis typically, whenever stats run for the domain.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  6. #6
    Member
    Join Date
    Sep 2006
    Posts
    253
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    I do, yes. Under Tweak Settings, everything under "Stats and Logs" is set to Default, except the "Log rotation size threshold" is set to 10MB and "The interval, in days, to retain Exim stats in the database" is set to 90. I think these refer to /usr/local/apache/logs/, though, not /domlogs/.

    If /domlogs/ rotates, where does the archive file end up? I can look there and see how often their really being rotated.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    You should be able to see how often they are rotated by checking one of the stats programs for the last date they pushed or in /home/username/tmp/ location where username is the cPanel username.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Member
    Join Date
    Sep 2006
    Posts
    253
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    All of the subdirectories under /home/example/tmp/ are empty, but then, I don't actually use any of the server-side stats programs. I used to use Urchin, but switched to Google Analytics awhile back.

    Does that mean that I can safely disable domlogs altogether, or is there another purpose other than stats?

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Domlogs

    You could disable stats processing. There are other things processed beyond the stats, though. Bandwidth is tracked that way as well as eximstats using cpanellogd. You can see what is processed if you run this command for one of the accounts:

    Code:
    /usr/local/cpanel/scripts/runweblogs username
    Where username is the cPanel username for an account.

    Thanks!
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. domlogs...
    By simon23 in forum cPanel & WHM Discussions
    Replies: 16
    Last Post: 01-19-2005, 10:07 AM
  2. domlogs
    By nicmo in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 08-20-2004, 10:04 AM
  3. domlogs rotation
    By electron33 in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 08-16-2004, 11:13 AM
  4. DomLogs
    By NorthwindHost in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-27-2004, 03:32 PM
  5. domlogs
    By silvernetuk in forum cPanel & WHM Discussions
    Replies: 23
    Last Post: 02-05-2003, 04:55 PM