Fastly
Send your Fastly logs to Robot Speed via HTTPS Logging. We automatically filter AI bot visits.
Prerequisites
- ✓A Fastly service
- ✓Your Robot Speed API key (Settings → API)
1
Add a logging endpoint
- In your Fastly service → Logging → Create endpoint → HTTPS
2
Configure endpoint
URL
https://www.robot-speed.com/api/ai-bot-visits/fastlyContent-Type
application/jsonCustom header
X-API-Key: your_rs_api_keyJSON format
Array of JSON3
Log format
Use this format in the logging configuration:
{
"timestamp": "%{begin:%Y-%m-%dT%H:%M:%S}tZ",
"host": "%{req.http.Host}V",
"status_code": %{resp.status}V,
"request_method": "%{req.method}V",
"request_path": "%{req.url.path}V",
"query_string": "%{req.url.qs}V",
"content_type": "%{resp.http.Content-Type}V",
"client_ip": "%{req.http.Fastly-Client-IP}V",
"user_agent": "%{req.http.User-Agent}V",
"referrer": "%{req.http.Referer}V"
}4
Activate
Save and activate the new version of your service. Data will appear in your dashboard within minutes.