Web Hosting Talk







View Full Version : Daily Apache Access Logs


biTe
06-23-2004, 12:15 AM
My server host does daily apache access log rotation on all reseller/resold accounts to save space on server.. which makes sense.

He was kind enough to do a crontab to email me the daily log for a particular resold account.
I note the following.

1. The daily log has been growing larger and larger and instead of just containing the daily logs, it appears to contain the cumulative logs instead.. starting from the first day it was configured... in this case from June 14. So logs on June 20 logs would have logs from June 14 (the day it was started) to June 20... and the June 21 logs contains logs from June 14 to June 21.

2. Initially the crontab was set to run at 12mn daily but the logs indicate to start from about 1000hrs instead of 0000hours. It is not possible there were no visitors during the period from 0000 - 1000 hrs

QUESTION
--------------
1. The access logs are sent to me in an email body and appears to only contain the logs for a specific day..
My host says he has looked at the dialy logs on the server and he sees only the logs for that day.
BUT when I copy the log from the email body and paste it to Ultraedit, I see the past cumulative logs there as well. How can this be happenning??? In the meantime, the "DAILY LOGS" email size keeps growing.. it is about 5mg now and contains cumulative logs for about 10 days.
What can my host do to just email me the access logs for each day.... I can then merge them locally for the month and do an analysis once.

2. Why is there a gap in access log between 0000 - 1000hrs.. My host has changed the crontab to run at 1000hr each day and is seem to contain all the logs now.

NOTE:
--------
I need to resolve visitos IP >> country, which is not turned on at the server.

Sorry I know this is a lot to read and I probably could have written it clearer. Hope its clear enough though.

Hope someone can share their experience on this.

Bashar
06-23-2004, 04:28 AM
for ip resolving your host need to turn it on from apache

and regarding logs, you can ask ur host to setup a crontab to empty your log file after emailing it to you to get daily data only.

biTe
06-23-2004, 05:15 AM
Thx Bashar.. sounds like you are right about the old cumulative daily log not being deleted before new "daily" log is generated and emailed to me. Let me discuss this with my host.

As for IP resolve.. it takes up too much resource and its better turned off on server, as is practiced by host.

Bashar
06-23-2004, 05:38 AM
if you have tons of visits everyday it would eat from the server resources thats true.

we usually disable them for our customers, and enable them only for dedicated servers owners since its their own resources :)