Fastly
Stream Fastly logs to AI Search Index using HTTPS logging with JSON format.
Endpoint
POST
/api/v1/logs/fastlyURL: https://aisearchindex.com/api/v1/logs/fastly
Headers:
X-API-Key: bot_YOUR_BOT_TRACKING_KEYSetup Steps
- 1
Open Service Configuration
In Fastly, go to your service → Logging
- 2
Add HTTPS Endpoint
Click Create endpoint and select HTTPS
- 3
Configure Endpoint
Name: ai-search-index URL: https://aisearchindex.com/api/v1/logs/fastly Method: POST Content type: application/json Headers: X-API-Key: bot_YOUR_BOT_TRACKING_KEY - 4
Configure Log Format
Use this JSON format in the log format field:
{ "timestamp": %{time.start.msec}V, "method": "%{req.method}V", "host": "%{req.http.host}V", "path": "%{req.url.path}V", "status_code": %{resp.status}V, "ip": "%{client.ip}V", "user_agent": "%{req.http.User-Agent}V", "referer": "%{req.http.Referer}V" } - 5
Activate
Save the endpoint and activate the new version of your service
Verify Integration
- Visit your Fastly-served website to generate traffic
- Wait a few minutes for logs to be processed
- Check your AI Search Index dashboard for incoming data