LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Bytelogger

Reply
 
Thread Tools Display Modes
  #1  
Old 05-14-2006, 04:44 PM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
Default Bytelogger

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 by Xorlev; 05-14-2006 at 04:47 PM..
Reply With Quote
  #2  
Old 05-14-2006, 07:46 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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
Reply With Quote
  #3  
Old 05-14-2006, 07:57 PM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
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 by Xorlev; 05-14-2006 at 08:01 PM..
Reply With Quote
  #4  
Old 05-14-2006, 08:12 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Great! We will update our code to match the log format accordingly.
Reply With Quote
  #5  
Old 05-14-2006, 08:31 PM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
Thank you, mistwang. As always, your quality support is impeccable
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:42 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.