Bytelogger

Xorlev

Well-Known Member
#1
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:

mistwang

LiteSpeed Staff
#2
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
 

Xorlev

Well-Known Member
#3
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:
Top