• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

Does The Rackspace Cloud provide raw log files for stats?


NOTE: This article is written for our Classic Cloud Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Cloud Control Panel".

Yes, you can activate raw logs for stats within the Clasic Cloud Control Panel.

Pre-requisites

  • Administrative access to the Rackspace Cloud

Procedure

  • Click Hosting on the left navigation menu and then click on Cloud Sites.
  • From the list of domains click on the hyperlink of the domain for which logging needs to be enabled.
    • You should now be on the General Settings tab for that website
  • Scroll down to Website Features section and click on the Enable hyperlink for Raw logs.
NOTE: The log collection occurs at 12 AM Central Time every day.
selectdomainforftpuser.jpg
logenable.jpg

Note: log files are purged after 6 days



© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

5 Comments

I enabled the logs, how do I retrieve them so I can analyze them? Thank you, Robert

Hey Robert,

The easiest way to access your logs is through your FTP client. Open up your FTP client, select your Domain, and within that folder, you should have a Logs folder. When you select the logs folder, you should see all your information. Grab all that data and drag it to your local machine. This may vary depending on what FTP client you're using, but you should have a logs folder within your FTP client.

Let us know if you need any other assistance.

-Rae

I see the log files are purged after 6 days, is that true? If so, is there a way to extend that time period?

Not at this time. You can set up a cron script that will backup logs or copy them to Cloud Files by modifying the scripts in this article:

http://www.rackspace.com/knowledge_center/article/how-to-use-cron-to-backup-cloudsites-to-cloudfiles

You can also use FTP or SFTP in a script to transfer logs from Cloud Sites to a workstation.

A simple bash script to copy your log files could look something like below (call via cron).

1. create folder www.domain.com/logs_archive

2. Save script in root/archive-logs.sh

3. Create cron/schedule via control panel, for instance at 1 AM.

4. Script:

#!/bin/sh
cp /mnt/path/www.domain.com/logs/* /mnt/path/www.domain.com/logs_archive/ -u

## -u make sure only new files are copied.


Add new comment