英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论