Overview
As part of this feature, Fastly provides an option to send data to generic HTTPS endpoints. In this document, we describe how to leverage this feature in order to send Fastly service logs to Bronto.Setup
API Key
- First an API key is required in order to be able to successfully ingest data into Bronto. To generate an API key in Bronto, please refer to the API Keys documentation.
Fastly Logging Configuration
The logging configuration is set per Fastly service (CDN or Compute).- From your CDN Services in Fastly, Select the Service you wish to collect logs from.
- Click the Service configuration tab
- Click the Logging option on the left sidebar

- From here select Create an Endpoint option, select HTTPS and then Create endpoint

-
Fill in the details required which include:
- Name: Name of the endpoint to create
- Placement: Format Version Default
- Log Format: See example below which can be copied
- URL: The URL to the Bronto ingestion endpoint. service_name and service_namespace query parameters can be passed to the URL in order to define the location of the log data in Bronto for example:
URL example
- Maximum logs: Max number of log lines sent in a single batch. Bronto does not enforce a limit, so the value can be left 0
- Maximum bytes: Max number of bytes sent in a single batch. Bronto accepts payload up to 10MiB, so this should be set to 10485760
-
Next Select Advanced Options and fill out the required fields:
- Content Type: The content type used when sending logs. Required: application/json.
- Custom header name: A custom header used when sending logs. Required: x-bronto-api-key
- Custom header value: A custom header value used when sending logs. Required: The Bronto API key previously generated
- Method: Required: POST
- JSON log entry format: Required: Newline Delimited
- Select a log line format: Blank
- Compression: Zstandard
- Finally, select Save or Update

/etc/fastly/fastly.conf
Using Event Fields for Service Name and Namespace
You can configure service name and namespace parameters within the URL to dynamically fetch values from log event content using the format @field.key.Service Name Using geo_countr