Forum Moderators: phranque

Message Too Old, No Replies

Raw log files are not getting updated daily

         

unni

5:34 pm on Jul 11, 2006 (gmt 0)

10+ Year Member



My daily and monthly apache raw log files are not getting updated daily.

Today my daily log file is around 2.5mb (accesslog_example.com_7_11_2006) and contains data from july 1st. monthly log file (example.com-Jun-2006) was last updated on June 30th and no monthly log file for july yet.

i have a program which takes daily log and display statistics for today. so to see today's stats i have to download stats from 1st and it is eating my bandwidth.

Plese help...

jdMorgan

6:37 pm on Jul 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache does not have a "daily access log file" -- It has only one access log file unless you define conditional logging using mod_logconfig in httpd.conf or conf.d -- an option not avaialable with name-based virtual (shared) hosting.

Name-based virtual hosting providers use scripts -- typically run as 'cron jobs' -- to split up this one main access log file into per-domain logs based upon the logged Hostname in the HTTP request field. Sometimes, these scripts fail to run for various reasons, leaving the 'daily log file' that they are supposed to create empty.

Therefore, this question is best directed to your hosting provider, as it has little to do with the actual Apache server program.

Jim

[edited by: jdMorgan at 6:38 pm (utc) on July 11, 2006]

unni

5:53 am on Jul 12, 2006 (gmt 0)

10+ Year Member



Thanks Jim.

I already contacted the hosting provider. they are just a reseller and dont have any clear idea about it. they said it is a feature provided by cPanel so they cant help it.

I have another site with the same hosting provider hosted on another server and is working fine.

jdMorgan

5:11 pm on Jul 12, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since you pay the reseller, it's their responsibility to contact the actual host and report the problem. Or to get out of the middle and give you the necessary contact info.

This is a relatively common problem; Either the cron job 'stalls' and fails to start the log-sorting script, or the script fails to complete the sorting process on all hosted sites because the server is over-populated. The most common cure is to simply re-start the server.

Jim

unni

4:33 pm on Jul 20, 2006 (gmt 0)

10+ Year Member



Hi Jim,

I asked them to restart the server as you suggested and now it is working fine. Thanks a lot..

Unni