Log currently active config version


Hello Fastly community,

Is there a variable that contains a currently active config version? I’d like to use this number to avoid log parsing conflicts while switching config version that have different log formats (syslog setup).



Hi vdemendes,

Yes, you can use req.vcl which is a variable that is available in vcl_recv and resolves to
the version of the VCL currently loaded. It will take the form [service_id].[version_number]_[generation]-[hash].

Hope that helps!