Bytelogger

Discussion in 'Install/Configuration' started by Xorlev, May 15, 2006.

  1. Xorlev

    Xorlev New Member

    After a week of using the bytelogger I noticed CPanel still does not pick up bandwidth. The bytelogger does work, as reading it has all the separate bytes per request on each line. I looked at other bytelogs (in /usr/local/apache/domlogs) and found this format:

    Code:
    1146435598 2164 .
    1146435599 15636 .
    1146435617 7384 .
    Promet5618 26843 .
    1146435618 22868 .
    Prometh618 1417 .
    Prometh618 86564 .
    Prometh624 1474 .
    Prometheu5 33434 .
    1146435625 94048 .
    Promet5625 15464 .
    Prometh625 49525 ..
    Promet5626 1020 .
    Prome35626 577 .
    Prometh626 4593 .
    Prometh626 852 .
    Promet5626 370 .
    Promet5626 36329 .
    1146435626 9851 .
    (My server's hostname is Prometheus)

    While your bytelogs are just the list of bytes separated by CRLF. I also noticed they had "offset" files, though these might be just for CPanel's reference.

    Code:
    4144131
    Then there were the access logs. Is the problem here the lack of the access log, the format of the bytelog, or?

    Naming format:

    Access: domain.com
    Byte log: domain.com-bytes_log
    Byte log "offset": domain.com-bytes_log.offset
    Last edited: May 15, 2006
  2. mistwang

    mistwang LiteSpeed Staff

    Can you please find and send the source code for mod_log_bytes, it is an Apache module developed by CPanel.

    Maybe the source code I got is an older release.

    Thanks,
    George
  3. Xorlev

    Xorlev New Member

    Here's the mod_log_bytes source code that buildapache uses.

    http://www.nanoshock.net/files/mod_log_bytes.c

    Also, I apologize for the hostnames and double periods in the log output. I found today my SSH client was malfunctioning and switched to another. Here's an accurate output:

    Code:
    1146435598 2164 .
    1146435599 15636 .
    1146435617 7384 .
    1146435618 26843 .
    1146435618 22868 .
    1146435618 1417 .
    1146435618 86564 .
    1146435624 1474 .
    1146435625 33434 .
    1146435625 94048 .
    1146435625 15464 .
    1146435625 49525 .
    1146435626 1020 .
    1146435626 577 .
    1146435626 4593 .
    1146435626 852 .
    1146435626 370 .
    1146435626 36329 .
    1146435626 9851 .
    
    Last edited: May 15, 2006
  4. mistwang

    mistwang LiteSpeed Staff

    Great! We will update our code to match the log format accordingly. :)
  5. Xorlev

    Xorlev New Member

    Thank you, mistwang. As always, your quality support is impeccable :)

Share This Page