LOG IN SIGN UP
Documentation

Logging purge requests

  Last updated April 24, 2018

If you've set up remote log streaming, you can log URL purge requests by adding the following VCL to the vcl_recv subroutine.

if (req.request == "FASTLYPURGE") {
   log {"syslog "} req.service_id {" <log name> :: "} <log string>
}

The log name must match the name of your logging endpoint in the Fastly web interface.

You can add the VCL via custom VCL or VCL Snippets.


Additional resources:


Back to Top