Manually reimport logs in SmarterStats

This article is intended for Cloud or Dedicated clients, if you are receiving the below error on our shared servers, please contact support at support@hosting.com .

This article goes over how to manually reimport logs into SmarterStats, which allows you to selectively reimport the most recent logs. This can save time over using the reimport that is currently built into the SmarterStats interface, as that will reimport all data. The manual reimport can also resolve errors, such as the one below:

"A data file has been corrupted in this site's statistics. As a precaution, the site will not process any more files until a backup can be restored."

  1. Check what is imported so far by checking the site, clicking Actions and then Logs Imported.

  2. In the example below, we see that the logs have stopped importing on April 25, so we will need to reimport the logs for the entire month of April.

  3. Check to make sure you have the raw log data still available on your server. If you are unsure of where your raw log data is, you can check it in Edit Site -> Log Location tab -> Full Path field

  4. If the log data you wish to reimport is no longer on your server, then proceeding with the reimport will result in the loss of data. Be sure to copy or restore those logs before proceeding.
  5. Stop the SmarterStats service
  6. Access the SmarterStats logs on the server, typically this is C:\SmarterLogs\WebLogs\ID. We will backup up some files, just in case the reimport is not successful.
    • Rename the month folder(s) that are being reimported, for example 2010-04 to 2010-04-BAK.
    • Make a copy of SiteConfig.xml .
  7. Open SiteConfig.xml, highlight the lines from the month(s) being reimported and delete them. Save the change

  8. Start SmarterStats service

  9. SmarterStats will automatically begin to reimport the logs.

Once completed and you have verified the reports are working, you may remove the backup of files, created in step 3.