Connect an AWS Application Load Balancer
Updated 29 November 2026Send Application Load Balancer access logs to Brandexa through an Amazon Data Firehose stream.
What to know
An Application Load Balancer can deliver its access logs to an Amazon Data Firehose stream, and Firehose forwards them to Brandexa over HTTPS. Use this when the load balancer receives traffic from the internet directly. If Amazon CloudFront sits in front of it, connect CloudFront instead and not both, or the same requests are counted twice.
Before you start
- You can create a Firehose stream, an S3 bucket and an IAM role, and edit the load balancer's integrations.
- The load balancer logs every request it receives. AWS bills the log delivery and Firehose, each per GB. A Direct PUT stream accepts 5 MiB a second by default in US East (N. Virginia), US West (Oregon) and Europe (Ireland), so a busy load balancer may need a higher limit.
Steps in Brandexa
- Open Agent analytics, then Logs, and choose Connect request logs.
- Choose AWS Application Load Balancer 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 the load balancer's region. The Firehose stream must be in the same region.
- 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.
- 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 EC2 console open Load Balancers, select your load balancer and open the Integrations tab. The access logs on the Attributes tab are the older S3 logs, which Brandexa cannot receive.
- Add an access log delivery with the destination Amazon Data Firehose, pick your stream and set Output format to JSON. Save, and accept the prompt that lets AWS deliver logs to the stream.
- Return to Brandexa and choose Check status. The load balancer delivers within a few minutes.
Source: Direct PUT
Destination: HTTP Endpoint
HTTP endpoint name: Brandexa agent analytics
HTTP endpoint URL: https://ingest.brandexa.com/v1/logs/alb
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: Enabled
Load balancer output format: JSONBrandexa does not read the visitor's address or the query string. 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 delivery does not save. The stream and the load balancer must be in the same region.
- The backup bucket fills with failed batches. Each file names the reason. A common one is an output format other than JSON.