beresp.backend.name

STRING, read-only.

Available infetchdeliverlogerror

If a response was received from a backend, then this variable will be the name of the backend that served the response, truncated to 255 characters if necessary.

If a response was not received from a backend, then this variable will be empty.

HINT: When using a Director we recommend using beresp.backend.name instead of req.backend if you're attempting to log or reference which backend was used for the request as it will identify which specific backend within the director was involved.

Try it out

beresp.backend.name is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.

Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.

Comprehensive logging

Fastly offers a myriad of different variables that you can log. See and test a large collection here.