We export Google CDN logs into our cloud storage for future parsing and calculations. However, we cant really understand this parameters and i think some parameters are missing.Typical export log is like:{"httpRequest":{"cacheHit":true,"cacheLookup":true,"referer":"http://referer.com/","remoteIp":"1.1.1.1","requestMethod":"GET","requestSize":"1285","requestUrl":"https://cdn.site.com/image.jpg","responseSize":"76","status":304,"userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"},"insertId":"111111111","log":"requests","metadata":{"labels":{"network.googleapis.com/forwarding_rule_name":"forwarding_rule_name","network.googleapis.com/target_proxy_name":"target_proxy_name","network.googleapis.com/url_map_name":"url_map_name"},"projectId":"project-id","serviceName":"network.googleapis.com","severity":"INFO","timestamp":"2016-12-23T02:59:58.676436503Z","zone":"global"},"structPayload":{"@type":"type.googleapis.com/google.cloud.loadbalancing.type.LoadBalancerLogEntry","statusDetails":"response_from_cache"}}Questions:1. Why sometimes we have log with:
- Only "cacheLookup":true
- Only "cacheHit":true
- "cacheHit":true,"cacheLookup":true
- "cacheFillBytes":"85435","cacheHit":true,"cacheLookup":true
Can anyone explain meaning of this parameters.
2. Google CDN have cache fill from origin and cache-to-cache fill. How you can know if the cache fill is from origin or from other cache. Also how you can identify cache-to-cache location just as Google bills us:Compute Engine Network CDN Cache Fill from Europe to Other Destinations: 1 GibibytesCompute Engine Network CDN Cache Fill from Europe to North America: 1 GibibytesCloud CDN North America Intra-Region Cache Fill: 1 Gibibytes
Cache fill and cache egress charges apply to cacheable content. On cache hits, you pay for cache egress bandwidth. On cache misses, you additionally pay for cache fill bandwidth. These charges replace the network egress charges that apply when serving directly from Compute Engine.
Hello Stevo,
Thank you for your patience. I don't have any useful information to share with you at this point of time. I'm working with the backend team to get answer to your questions. I'll get in touch with you by next week.Faizan
On Fri, Jan 6, 2017 at 1:28 PM, Faizan (Google Cloud Support)
Hello Stevo,