Problem
I'm running Nginx Ingress Controller deployed on GKE and I want to structure my web server logs so I can create metrics and aler...
For further actions, you may consider blocking this person and/or reporting abuse
Is this properly indexed by Stackdriver? From reading the documentation, it seems that Stackdriver wants the HTTP info nested in the
httpRequestkey, and IIRC, JSON logs end up in thejsonPayloadkey for k8s containers in Stackdriver. Or is Stackdriver smart enough to figure out it should be in thehttpRequestkey?UPDATE:
So I think I figured this out, the JSON should be nested in an
httpRequestkey. Here's the working version:I do not see the difference ... is the original post also updated?
Thanks for pointing this out.
Here's another example JSON format I found useful:
journal.petrausch.info/post/2020/0...