I've been exploring configuring a custom logging in GKE with a customized `fluentbit` agent (docs). We have a special structured logging format that I'd like to parse to something more Google Cloud Logging friendly. Some of the things I've done so far have included specifying special fields (docs) in the payloads, including `severity` and `message`, which have had obvious results. I've also tried specifying other special fields like `httpRequest`. While I'm able to set these fields, I'm not really seeing the benefit. If we include the same information in our custom logging format, is there a benefit of specifying `httpRequest` fields?
Hello @grahamalama,
Welcome to Google Cloud Community!
To answer your question, yes. There are several benefits when it comes to analyzing and understanding your application's HTTP requests and responses. The 'httpRequest' field is part of the LogEntry data structure in Cloud Logging, and it contains detailed information about HTTP requests made to your application.
If you utilize 'httpRequest' fields in your Cloud Logging, it can significantly improve the observability and analysis capabilities of your applications, especially when dealing with web-based services that interact via HTTP.
Here are some that I know:
This document might also be helpful for you when using the Logging agent.
Thanks