Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
Security measures
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Logging purge requests

      Last updated October 02, 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.

    1
    2
    3
    
    if (req.method == "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.

    Back to Top

    Additional resources: