Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    44

    Default Raw Log Access

    Hi,

    I'm a reseller and don't have root access so this may complicate what I'm about to ask.

    The I own the largest site on my server, and it currently does about 50Gb of traffic a month.

    When I try to access the raw log files from CPanel using :2082/getaccesslog/ towards the end of the month the download quite often times out and I get only part of the logs.

    Is there a way to telnet in and build the logs into a gzip in my root, and then ftp them down?

    Any other solutions? It's getting quite annoying as I am finding it difficult to sell advertising without accurate traffic reporting.

  2. #2
    cPanel Test Bitch
    Join Date
    Feb 2002
    Location
    Boston MA
    Posts
    596

    Default

    Contact your provider and tell them to do the following

    mkdir /home/USERNAME/logs

    pico httpd.conf

    hit control + W and then type the username to search within the apache config

    Change

    CustomLog domlogs/DOMAIN.com combined
    to
    CustomLog /home/USERNAME/logs/DOMAIN.com combined

    Hit control + O then Enter

    Now just to be safe have them do this

    chown USERNAME.USERNAME /home/USERNAME/logs/domain.com


    Then tell them to restart apache just to make sure it all works right. That way it don't crash while they're AFK. Rather have it crash while they're there.


    Now all you have to do is login via FTP and change directories to logs and download the file. This will be in realtime so you can use webtrends or your favorite traffic generator.

    Also tell them to replace USERNAME with your correct username. And domain.com with your domain.

    I do this for a bunch of my clients. You will be happy with how it works.

    Good luck and may business bring you great pleasure.

  3. #3
    Member
    Join Date
    Sep 2001
    Posts
    44

    Default Thanks!



    I will pass this on to my provider. Hopefully they'll be able to get it sorted soon!

  4. #4
    Member
    Join Date
    Sep 2001
    Posts
    44

    Default

    Okay, got some additional questions...

    I gzipped the file to download it, but then found that once I'd removed the file the logs didn't start building themselves again in the /logs directory. I had to get my provider to run your routine again. I'd have expected that the logs would start a new in the directory if there wasn't one there, but they didn't.

    Also, I'm concerned that uncompressed they will grow to a huge size in my user area.

    I'm not so good with cron jobs, but would it be possible to run one that would compress the logs into a daily chunk, and still allow them to continue building uninterupted in the logs area? Way back when I started running my site at hypermart.net they provided a facility like that.

    Any suggestions?

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default

    Originally posted by awsol
    Contact your provider and tell them to do the following

    mkdir /home/USERNAME/logs

    pico httpd.conf

    hit control + W and then type the username to search within the apache config

    Change

    CustomLog domlogs/DOMAIN.com combined
    to
    CustomLog /home/USERNAME/logs/DOMAIN.com combined

    Hit control + O then Enter

    Now just to be safe have them do this

    chown USERNAME.USERNAME /home/USERNAME/logs/domain.com


    Then tell them to restart apache just to make sure it all works right. That way it don't crash while they're AFK. Rather have it crash while they're there.


    Now all you have to do is login via FTP and change directories to logs and download the file. This will be in realtime so you can use webtrends or your favorite traffic generator.

    Also tell them to replace USERNAME with your correct username. And domain.com with your domain.

    I do this for a bunch of my clients. You will be happy with how it works.

    Good luck and may business bring you great pleasure.
    Hi there,

    Hope you don't mind me bumping an OLD post but I have a question regarding what you wrote, specifically the chown... part.

    IS there a way to automatically chown the /logs/filename without having to manually do it everytime you setup a new account?

    Can it be incorporated into the CustomLog/virtual area?

    Any idea/help?

    Thanks!!!

    Aaron

  6. #6
    Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    248

    Default

    I believe there's a option in cpanel to archive the months into your home directory at the EOM, if this helps.

Similar Threads & Tags
Similar threads

  1. Viewing cpanel access log - other than downloading raw access log
    By bls24 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-11-2008, 02:46 PM
  2. raw access log
    By ncconquer in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2005, 05:31 AM
  3. Raw Access Log
    By celt man in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-01-2004, 06:26 PM
  4. Raw access log period ?
    By sanam in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-03-2002, 08:48 AM
  5. Raw Access Log
    By Elena in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-27-2002, 05:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube