Fastly Object Storage now available as a logging endpoint

You can now send CDN and Compute service logs to Fastly Object Storage - available as its own endpoint type. Best of all you don’t need to worry about creating or pasting access keys.

When you add the endpoint, you pick a region and a bucket, or create a bucket from the same form. We create an access key with read and write access to that bucket only and stores it with the endpoint. The secret isn’t shown in the control panel or returned by the API.

If you’re already using S3 endpoint type to send logs to Fastly Object Storage, it’ll still keep working.


Try it

  • Control panel: on your service’s Logging page, choose Add endpoint > Fastly Object Storage.
  • Fastly CLI v17.2.0: fastly service logging fos create --region us-east-1 --bucket my-log-bucket ...
  • Terraform provider v10.3.0: the logging_fos block on fastly_service_vcl and fastly_service_compute.
  • API: /service/{service_id}/version/{version_id}/logging/fos

Good to know

  • Object Storage needs to be enabled on your account, and you need the Engineer or Superuser role to add the endpoint.
  • The first files appear a few minutes after you activate the service version.
  • To delete old logs automatically, add a lifecycle rule to the bucket.
  • Moving an endpoint to another bucket, or deleting it, leaves the old key in place for older service versions. Delete it under Resources > Object Storage when it’s not in use.

Docs

If you try it, let us know what worked and what didn’t.

1 Like