Daily Apache Access Logs
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.