gpt4 book ai didi

google-analytics - 如何在Google云存储中启用实时对象访问分析?

转载 作者:行者123 更新时间:2023-12-03 16:05:07 25 4
gpt4 key购买 nike

我正在尝试为存储在Google云存储桶中的对象设置实时访问日志。 google指定的here访问日志每小时生成一次,将无法正常工作。

我想要关于对象访问的类似信息(ip,下载量,client_os),但要实时。有没有办法在Google云端平台上执行此操作?

如果使用实时日志将流量路由到另一点会更好,那么我将为您提供有关如何执行此操作以及使用哪些工具的建议。最终,我希望在Google Data Studio中可视化数据。

最佳答案

不幸的是,谷歌存储仅提供以下gcp-storage metric

- api/request_count
- authz/acl_based_object_access_count
- authz/object_specific_acl_mutation_count
- network/received_bytes_count
- network/sent_bytes_count
- storage/object_count
- storage/total_byte_seconds
- storage/total_bytes


我认为您想要存储对象的访问日志,例如图像,视频等。
您也许可以尝试在存储桶前面使用 Google Cloud CDN
因此,您可以通过 httpRequest获取所需的访问日志,并从stackdriver获取

{
"requestMethod": string,
"requestUrl": string,
"requestSize": string,
"status": number,
"responseSize": string,
"userAgent": string,
"remoteIp": string,
"serverIp": string,
"referer": string,
"latency": string,
"cacheLookup": boolean,
"cacheHit": boolean,
"cacheValidatedWithOriginServer": boolean,
"cacheFillBytes": string,
"protocol": string
}

关于google-analytics - 如何在Google云存储中启用实时对象访问分析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55738078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com