Log currently active config version


#1

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).

Thanks!


#2

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!
Maksim