Heroku

Fastly will stream log messages to the Heroku account in the format specified in the Heroku object.

Data model

nameStringThe name of the heroku rule.
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.
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.
tokenStringThe token to use for authentication (https://devcenter.heroku.com/articles/add-on-partner-log-integration).
urlStringThe url to stream logs to.
response_conditionStringThe name of an existing condition in the configured endpoint, or leave blank to always execute.

Endpoints

Get a Heroku log endpoint

GET/service/service_id/version/version/logging/heroku/name

List Heroku log endpoints

GET/service/service_id/version/version/logging/heroku

Create a Heroku log endpoint

POST/service/service_id/version/version/logging/heroku

Update the Heroku log endpoint

PUT/service/service_id/version/version/logging/heroku/old_name

Delete the Heroku log endpoint

DELETE/service/service_id/version/version/logging/heroku/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.