How to add Amazon Cloudfront ID X-Amz-Cf-ID debug headers to Section Varnish logs Follow
When running the Varnish module on the Section platform you can capture Amazon AWS CF ID debug headers to the logs.
Note, case sensitive, please use req.http.http.X-Amz-Cf-Id
import std;
sub vcl_recv {
std.log("section-io-cache-tag:" + req.http.X-Amz-Cf-Id);
....
}
You can then use build Kibana reports that use the section_io_cache_tag and align AWS CF AMZ-Cf-Id with the section_io_id.
Custom Logging
https://www.section.io/docs/guides/debugging/custom-logging/
Comments
0 comments
Article is closed for comments.