[cig-commits] r14184 - cs/stats/trunk

sue at geodynamics.org sue at geodynamics.org
Mon Mar 2 12:02:14 PST 2009


Author: sue
Date: 2009-03-02 12:02:13 -0800 (Mon, 02 Mar 2009)
New Revision: 14184

Modified:
   cs/stats/trunk/get_all.cxx
Log:
Make get_all use access.log* instead of access_log

Modified: cs/stats/trunk/get_all.cxx
===================================================================
--- cs/stats/trunk/get_all.cxx	2009-03-02 16:32:07 UTC (rev 14183)
+++ cs/stats/trunk/get_all.cxx	2009-03-02 20:02:13 UTC (rev 14184)
@@ -184,8 +184,17 @@
   char line[max_size];
 
   list<fs::path> logs;
-  /* Add the Apache logs */
-  logs.push_back("/var/log/apache2/access_log");
+  /* Add the Apache logs.  We used to use
+     "/var/log/apache2/access_log" because that has all of the data
+     back to the beginning.  Unfortuntately, that has been wiped, so
+     we are using the access.log* files, which only go back a year. */
+  for(fs::directory_iterator
+	i("/var/log/apache2/");
+      i!=boost::filesystem::directory_iterator(); ++i)
+    {
+      if(i->leaf().substr(0,10)=="access.log")
+	logs.push_back(*i);
+    }
 
   /* Add all of the Zope logs */
   for(fs::directory_iterator



More information about the CIG-COMMITS mailing list