Push to AWS S3-Compatible COS
EdgeOne Real-time Log Delivery supports configuration through the console or API to push logs to object storage compatible with the AWS S3 Signature Version 4 authentication algorithm, for example:
AWS S3
Configuration Guide
1. Log in to the Tencent Cloud EdgeOne console, enter Service Dashboard in the left menu bar, and click the site to be configured under Website Security Acceleration.
2. On the site details page, click Log Service > Real-time Logs.
3. On the Real-time Logs page, click Create delivery task.
4. On the Select Log Source page, enter the task name, select the log type and service area, and click Next.
5. On the Select Destination page, select AWS S3-compatible object storage, and click Next.
6. On the Define Log Content page:
(Required) Select the domain name/layer-4 proxy instance/edge function instance for which logs need to be pushed;
(Required) Check the log fields to be pushed from the predefined field list.
(Optional) Add custom log fields, which support custom log field names and custom log field values using expressions.
(Optional) Configure the filter conditions, the default is to push full logs.
(Optional) In Advanced settings, configure the sampling ratio. Sampling is disabled by default, and 100% of logs are pushed to the destination.
(Optional) In Advanced settings, configure the log output format. The default format is JSON Lines.
Click Next.
7. On the Destination Details Page, enter the related destination and parameter information.
Parameter name | Description |
Endpoint URL | URL without bucket name or path, e.g.: https://cos.ap-nanjing.myqcloud.com. |
Bucket region | Region where the bucket is located, for example: ap-nanjing. |
Bucket | Bucket name and log storage directory, for example: your_bucket_name/EO-logs/. Whether or not you end the directory with /, it will be correctly parsed and processed. |
File compression | After checking, gzip will be used to compress log files. |
Secret ID | Access Key ID used to access the bucket. |
Secret key | Secret key used to access the bucket. |
8. Click Ship.
9. After issuing the real-time log delivery task, EdgeOne will push a test file to the target bucket directory to verify connectivity, for example,
1699874755_edgeone_push_test.txt, with the file content being the fixed string "test".File Name Description
Logs will be stored in the specified bucket directory in the
{{UploadTime}}_{{Random}}.log format, and will be archived into folders by date (UTC+0), for example: 20230331/20230331T185917Z_2aadf5ce.log. When you enable gzip compression, the file name will be 20230331/20230331T185917Z_2aadf5ce.log.gz.UploadTime: The upload time of the log file, in UTC+0, with the format
YYYYMMDDTHHmmssZ.Random: Random characters used to identify different files when there are multiple log files for the same upload time due to large log volume.
Note:
For real-time log delivery tasks created by some customers earlier, the file paths and file names are still generated in the UTC+8 time zone. If this behavior does not meet your expectations, please contact us for support.