Wednesday, August 24, 2005

CCMS web site logging

A few weeks ago MK asked if we could generate some usage statistics for the CCMS web site. At the time I was unable to find any historical usage logs. After a lot of research and examination of configuration files I had things set up so that the logs were rotated. I checked in on the log files today to discover that there were only a week's worth of logs available. Since there were some logs available, but not the amount that I had expected, I figured something was removing old log files. I did some more investigation, looking mainly at the cron tab. As it turns out the daily cron job was deleting any log file older than seven days. I commented out the offending line and will check tomorrow to make sure everything is working as expected.