A few questions regarding the apache raw access logs. <br /><br />Whats the easiest way to access them via a php script or something. I know you can have them archive onto your logs directory after every month, but what about the current log. I can only find 2 places where I can access them. <br /><br />1. Under <a href="http://****:2082/getaccesslog/accesslog-mydomain-4-19-2005.gz" target="_blank">http://****:2082/getaccesslog/acce...in-4-19-2005.gz</a> password protected by cpanel. ( So I'm guessing it could be possible If i were to manually send post request varirables [username and password] )<br />2. The other place is via ftp. Under the username <b>username_logs</b>.<br /><br />So are these the only two places I can access them, and do they always accumulate by month. I figure this is just the way you have them setup. By month rather than by day right? <br /><br />Thanks,<br />Dave<br /><br />EDIT: By the way, I have 2 accounts and I can't seem to access one through ftp. I'm probably going to submit a help desk ticket to see whats up with that. I'm almost certain it has to do with the my domain name change around a year ago.<!--content-->
Sorry Dave, I only know how to access the logs through cPanel. Maybe someone else has some ideas.<!--content-->
Check this one:<br /><br /><a href="http://www.annelisabeth.com/pc/pc13.htm" target="_blank"> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/clapping.gif" style="vertical-align:middle" emoid=":clapping:" border="0" alt="clapping.gif" /> </a><br /><br />I believe it's in this location here:<br />/usr/local/apache/domlogs/domain.com<br /><br />Remember to replace domain.com with the name of your domain. And if your TLD is info, then it would be domain.info<br /><br />Good luck!<!--content-->
Nope, I couldn't find it in there.<!--content-->
You won't be able to access the logs there except through a script. Cron works well.<!--content-->
I know this is what I did. <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?<br />$file = '/usr/local/apache/domlogs/mydomain';<br />header('Content-type: application/force-download');<br />header('Content-Transfer-Encoding: Binary');<br />header('Content-disposition: attachment; filename="'.$file.'"');<br /><br />readfile($file);<br />?><!--c2--></div><!--ec2--><!--content-->
did you use /your_tch_domain or /your_tch_domain.com ?<br /><br />It does need the correct TLD as an 'extension'.<br /><br />If that does not work, submit a ticket to the help desk, and ask us to provide a symbolic link (alias) to that file within your account for you.<!--content-->
Yeah I did add the tld. I'll go ahead and submit that help desk ticket in a while, but do you happen know if the log is for current month only or is there a place to access daily logs too...Just curious.<!--content-->
Logs grow monthly. If you want daily logs, then use my scripts, run it via cron and download the day after.<!--content-->
Yup, your <a href="http://www.annelisabeth.com/pc/pc13.htm" target="_blank">script</a> looks like it will work nicely. Thanks<!--content-->
Just got this settled through the help desk. I have no idea why you guys have access to your domlogs and I don't. The tech had to change the path of the domlogs to my home directory for me to access it. Oh well, its all good now.<!--content-->
Sorry Dave, I only know how to access the logs through cPanel. Maybe someone else has some ideas.<!--content-->
Check this one:<br /><br /><a href="http://www.annelisabeth.com/pc/pc13.htm" target="_blank"> <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/clapping.gif" style="vertical-align:middle" emoid=":clapping:" border="0" alt="clapping.gif" /> </a><br /><br />I believe it's in this location here:<br />/usr/local/apache/domlogs/domain.com<br /><br />Remember to replace domain.com with the name of your domain. And if your TLD is info, then it would be domain.info<br /><br />Good luck!<!--content-->
Nope, I couldn't find it in there.<!--content-->
You won't be able to access the logs there except through a script. Cron works well.<!--content-->
I know this is what I did. <br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?<br />$file = '/usr/local/apache/domlogs/mydomain';<br />header('Content-type: application/force-download');<br />header('Content-Transfer-Encoding: Binary');<br />header('Content-disposition: attachment; filename="'.$file.'"');<br /><br />readfile($file);<br />?><!--c2--></div><!--ec2--><!--content-->
did you use /your_tch_domain or /your_tch_domain.com ?<br /><br />It does need the correct TLD as an 'extension'.<br /><br />If that does not work, submit a ticket to the help desk, and ask us to provide a symbolic link (alias) to that file within your account for you.<!--content-->
Yeah I did add the tld. I'll go ahead and submit that help desk ticket in a while, but do you happen know if the log is for current month only or is there a place to access daily logs too...Just curious.<!--content-->
Logs grow monthly. If you want daily logs, then use my scripts, run it via cron and download the day after.<!--content-->
Yup, your <a href="http://www.annelisabeth.com/pc/pc13.htm" target="_blank">script</a> looks like it will work nicely. Thanks<!--content-->
Just got this settled through the help desk. I have no idea why you guys have access to your domlogs and I don't. The tech had to change the path of the domlogs to my home directory for me to access it. Oh well, its all good now.<!--content-->