When analyzing traffic statistics and reviewing reports in general, gaining access and insight into raw logs can be very useful. However, storing large amounts of data for processing can be a hassle so, we have a feature that allows you to easily push gathered raw logs on a previously defined time basis (1 hour, 12 hours, 1 day, 3 days).
Assuming you have an S3 bucket called "pullzone_logs", all you need to do is enable this feature under Zone settings ($100 is added to your invoice if this feature is enabled).
How to Enable Logs
Enable Raw logs to S3.
Insert your Bucket Name, select S3 Region, define the Prefix that will be used when saving logs (optional), select frequency period (the default is one day) and define the logs format according to your preference.
bytes, cache_status, client_asn, client_city, client_continent, client_country, client_ip, client_latitude, client_longitude, client_state, hostname, method, pop, protocol, query_string, referer, scheme, status, time, uri, user_agent
Now, what you need to do is to make sure proper permissions are set on Amazon S3 so we could access it and store the logs on your S3 bucket. Please see here for instructions on how to set up the proper Amazon S3 permissions. Use the link at the bottom of this feature and it will open predefined access policy for S3 that you need to use (select all/copy).
On the Amazon S3 side, open bucket properties and under "Permissions" select "Edit bucket policy", popup window will show up where you need to paste previously copied policy from MaxCDN control panel:
That's it! Your logs will be backed up on your S3 bucket on timely based cycles using a previously defined prefix.
- If you have any questions about the content of this article, please feel free to reach out to the Support Team for assistance, we're available 24/7 for your convenience.