AWS CloudFront
Stream CloudFront real-time logs to AI Search Index via Amazon Data Firehose HTTP endpoint.
Endpoint
POST
/api/v1/logs/aws_data_firehose_cloudfrontEndpoint URL: https://aisearchindex.com/api/v1/logs/aws_data_firehose_cloudfront
Access key: bot_YOUR_BOT_TRACKING_KEYSetup Steps
- 1
Enable Real-time Logs
In CloudFront console, go to your distribution → Real-time logs →Create configuration
- 2
Create Kinesis Data Firehose Stream
Go to Amazon Data Firehose → Create Firehose stream
- Source: Direct PUT
- Destination: HTTP Endpoint
- 3
Configure HTTP Endpoint
Enter the AI Search Index endpoint details:
HTTP endpoint URL: https://aisearchindex.com/api/v1/logs/aws_data_firehose_cloudfront Access key: bot_YOUR_BOT_TRACKING_KEY - 4
Select Fields
In the CloudFront real-time logs configuration, select these fields:
- timestamp
- c-ip (client IP)
- cs-method (request method)
- cs-uri-stem (request path)
- cs-host (hostname)
- cs-user-agent
- sc-status (response status)
- cs-referer
- 5
Attach to Distribution
Attach the real-time logs configuration to your CloudFront distribution.
Backup Destination (Recommended)
Configure an S3 bucket as a backup destination in case of delivery failures. This ensures you don't lose log data if our endpoint is temporarily unavailable.
IAM Permissions
Your Firehose stream's IAM role needs permission to send data to HTTP endpoints. This is typically configured automatically when you create the stream.