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

  1. In your Fastly service → LoggingCreate endpointHTTPS
2

Configure endpoint

URL

https://www.robot-speed.com/api/ai-bot-visits/fastly

Content-Type

application/json

Custom header

X-API-Key: your_rs_api_key

JSON format

Array of JSON
3

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.