Connect Amazon CloudFront
Updated 29 November 2026Send CloudFront standard logs to Brandexa through an Amazon Data Firehose stream.
What to know
CloudFront delivers each access log line as JSON to an Amazon Data Firehose stream, and Firehose forwards it to Brandexa over HTTPS. You create the stream and turn on logging in your own AWS account. Brandexa never needs access to it.
Before you start
- You can create a Firehose stream, an S3 bucket and an IAM role, and edit the distribution's logging.
- CloudFront sends a log line for every request. AWS bills the log delivery and Firehose, each per GB. A busy distribution may need a higher Firehose limit. A Direct PUT stream accepts 5 MiB a second by default in us-east-1.
Steps in Brandexa
- Open Agent analytics, then Logs, and choose Connect request logs.
- Choose Amazon CloudFront and pick the domain.
- Choose Show the connection details. Copy the endpoint URL and the access key. The key is shown once.
Steps in AWS
- Switch the console to US East (N. Virginia). CloudFront delivers standard logs only to streams in us-east-1.
- Open Amazon Data Firehose and choose Create Firehose stream. Set Source to Direct PUT and Destination to HTTP Endpoint. Name it, for example brandexa-agent-analytics.
- Under Destination settings enter the values listed below.
- Under Source record backup in Amazon S3 choose Failed data only and pick or create a bucket. Firehose writes there any batch Brandexa could not accept, with the reason.
- Under Advanced settings set Amazon CloudWatch error logging to Enabled, let the console create a new IAM role, and choose Create Firehose stream. Wait until it is Active.
- In the CloudFront console open your distribution and its Logging tab. Under Standard log destinations choose Add and set Deliver to to Amazon Data Firehose. Pick your stream.
- Select the log fields listed below and set Output format to JSON. Choose Submit.
- Return to Brandexa and choose Check status. The first delivery can take several hours.
Region: US East (N. Virginia) us-east-1
Source: Direct PUT
Destination: HTTP Endpoint
HTTP endpoint name: Brandexa agent analytics
HTTP endpoint URL: https://ingest.brandexa.com/v1/logs/cloudfront
Authentication: Use access key
Access key: <YOUR_ACCESS_KEY>
Content encoding: GZIP
Retry duration: 300 seconds
Parameters: leave empty
Buffer hints: keep the defaults
Source record backup in Amazon S3: Failed data only
Amazon CloudWatch error logging: Enabledtimestamp(ms)
date
time
cs-method
x-host-header
cs-uri-stem
cs(User-Agent)
sc-status
sc-bytes
x-edge-request-id
c-countryLeave the visitor address, query string and referrer fields unselected. Brandexa does not read them. Requests from browsers are sent as well, and Brandexa discards everything except recognised crawlers on arrival.
Brandexa keeps only requests from recognised AI crawlers and search engines. For each one it stores the time, host, path without the query string, method, status, size, country and crawler name. It does not store visitor addresses, query strings, cookies or the user agent text.
If something goes wrong
- The backup bucket fills with failed batches. Each file names the reason. A common one is an output format other than JSON.
- Nothing arrives after several hours. Check that logging is enabled on the distribution and that the stream is Active.