Point Me In The Right Direction ?

liunx

Guest
Hi there,<br /><br />I have decided to offer a graphical/ textual report on the amount of bandwidth a customer has used so far in that given month.<br /><br />Just like the one avaliable to us in the cpanel. But i want it external to the cpanel. <br /><br />So my question is really, which files on the server do i need to reference in order to calcualte bandwidth usage.<br /><br />With this information, i can get into some heavy duty php writing. Any thoughts ??<br /><br />Take Care <br />G_N<!--content-->
Maybe this <a href="http://www.totalchoicehosting.com/forums/index.php?s=&showtopic=21717&view=findpost&p=142358" target="_blank">post</a> on showing Awstats without cpanel access will give you some ideas.<!--content-->
hi, hmmm<br /><br /><br />Been doing some digging, <br /><br />do i have access to <br /><br />"/home/USER/logs/access_log"<br />"/home/USER/logs/access_log.1"<br /><br />??<!--content-->
Sorry, should give you a clarification.<br />I would like to know the path name to the Raw access logs.<br /><br />That way i can then, do some calulations in order to work out how much bandwidth has been used in that month.<br /><br />Thanks for your time<!--content-->
You can download your raw access logs using cPanel.<!--content-->
<!--quoteo(post=150732:date=Oct 1 2005, 09:49 AM:name=TCH-Bruce)--><div class='quotetop'>QUOTE(TCH-Bruce @ Oct 1 2005, 09:49 AM) <a href="http://www.totalchoicehosting.com/forums/index.php?act=findpost&pid=150732"><img src='http://www.totalchoicehosting.com/forums/style_images/1/post_snapback.gif' alt='*' border='0' /></a></div><div class='quotemain'><!--quotec-->You can download your raw access logs using cPanel.<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />I wrote a perl script that does a nice snapshot of web usage in the past few hours, using<br />the daily access.log file.<br /><br />In order to work, I need a path to the daily access.log file on the server. It's a pain-in-the-butt to<br />have to download the monthly access.log file each time I want to check my stats for the last few<br />hours, and I don't like having to wait til midnight for AwStats to update.<br /><br />Is downloading truly the only way we can get access to the raw file?<br /><br />Thanks<!--content-->
 
Back
Top