Skip to content

Support for fastly v2 log format #11640

@gilesrapkin

Description

@gilesrapkin

Fastly now support a new logging format, but the format tag of the s3logging block in the fastly_service_v1 resource doesn't seem to support the v2 format strings. When we tried to apply with the following format string...

%a %l %u %t %m %U%q %H %>s %b %T

...we got an error from fastly.

Looking at their API, the call to set up the s3 log takes a format_version parameter, which defaults to version 1 if not set - https://docs.fastly.com/api/logging#logging_s3_a3afaf505cb81fb44622fbcc6e41a03d

Hopefully all that is required is allowing setting of the format_version parameter in the s3logging block to make version 2 format strings work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions