使用Google Cloud CDN/负载均衡器记录访问日志中的Cookie信息

huangapple go评论57阅读模式
英文:

Cookie logging in access logs with Google Cloud CDN/Load Balancer

问题

我们正在尝试将我们的一个站点从AWS迁移到GCP。

我们目前有一个托管在AWS上的站点,使用Cloudfront作为其源,由Application Load Balancer支持。AWS提供了在访问日志中记录Cookie的选项,我们正在某些数据处理服务中使用它。

我正在尝试使用Google云服务在Google CDN/负载均衡器上实现相同的功能,但似乎找不到如何做到这一点的方法。文档也没有提供太多帮助,因为它没有说明如何执行此操作,或者是否可能执行。

有人能帮助我吗?在Google Cloud中记录Cookie数据是否可行?

英文:

We are trying to move one of our sites from AWS to GCP.

We have a site that currently sits on AWS, with Cloudfront backed by Application Load balancer as its origin. AWS does provide an option to log cookies in access logs, which we are using in some of our data processing services.

I'm trying to implement the same with Google cloud services, using Google CDN/Load Balancer, but I cant seem to find a way to do it. Documentation was also not of much help, as it does not tell on how to do it, or if it even is possible.

Can someone help me with this? Is it even possible to log cookie data in Google Cloud?

答案1

得分: 0

目前无法在GCLB(CDN)日志中记录cookie或自定义标头。

使用媒体CDN服务,可以使用服务扩展(Proxy-WASM)记录自定义属性,以捕获自定义日志属性,然后将其与基本的媒体CDN日志合并。

英文:

It is not currently possible to log cookies or custom headers in the GCLB (CDN) logs today.

Using the Media CDN service, it is possible to log custom attributes using Service Extensions (Proxy-WASM) to capture the custom log attributes and then merge them with the base Media CDN logs.

huangapple
  • 本文由 发表于 2023年6月1日 18:13:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76380858.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定