DigitalOcean Spaces

Fastly will upload log messages to the DigitalOcean Space in the format specified in the DigitalOcean Spaces object.

Data model

nameStringThe name of the DigitalOcean object.
service_idStringThe alphanumeric string identifying a service.
versionIntegerThe current version of a service.
bucket_nameStringThe name of the DigitalOcean Space.
access_keyStringYour DigitalOcean Spaces account access key.
secret_keyStringYour DigitalOcean Spaces account secret key.
domainStringThe domain of the DigitalOcean Spaces endpoint (default "nyc3.digitaloceanspaces.com").
pathStringThe path to upload logs to.
periodIntegerHow frequently log files are finalized so they can be available for reading (in seconds, default 3600).
timestamp_formatStringstrftime specified timestamp formatting (default "%Y-%m-%dT%H:%M:%S.000").
gzip_levelIntegerWhat level of gzip encoding to have when dumping logs (default 0, no compression).
public_keyStringA PGP public key that Fastly will use to encrypt your log files before writing them to disk.
formatStringApache style log formatting.
format_versionIntegerThe version of the custom logging format used for the configured endpoint. Can be either 2 (the default, version 2 log format) or 1 (the version 1 log format). The logging call gets placed by default in vcl_log if format_version is set to 2 and in vcl_deliver if format_version is set to 1.
message_typeStringHow the message should be formatted. One of:.
classic(default) RFC 3164 syslog prefix.
logglyRFC 5424 structured syslog.
logplexHeroku-style length prefixed syslog.
blankNo prefix. Useful for writing JSON and CSV.
placementStringWhere in the generated VCL the logging call should be placed, overriding any format_version default. Can be none or waf_debug. This field is not required and has no default value.
public_keyStringA PGP public key that Fastly will use to encrypt your log files before writing them to disk.
response_conditionStringThe name of an existing condition in the configured endpoint, or leave blank to always execute.
created_atStringTime-stamp (GMT) when the endpoint was created.
updated_atStringTime-stamp (GMT) when the endpoint was deleted.
deleted_atStringTime-stamp (GMT) when the endpoint was deleted.

Endpoints

List DigitalOcean Spaces log endpoints

GET/service/service_id/version/version/logging/digitalocean

Get a DigitalOcean Spaces log endpoint

GET/service/service_id/version/version/logging/digitalocean/name

Create a DigitalOcean Spaces log endpoint

POST/service/service_id/version/version/logging/digitalocean

Update a DigitalOcean Spaces log endpoint

PUT/service/service_id/version/version/logging/digitalocean/old_name

Delete a DigitalOcean Spaces log endpoint

DELETE/service/service_id/version/version/logging/digitalocean/name

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.