We are using Google Cloud Stackdriver Logs for Load Balancer requests. As far as I see, we can get both GET and POST requests but we cannot reach POST payload. Is it possible to add POST payload to load balancer logs on Stackdriver?

  • Can you clarify if you mean the payload for all POST requests targeting the load balancer? To add, it is possible to add your own Fluentd configuration files to the Logging agent to receive logs from the instance. Here is another documentation on writing custom logs. – N Singh Dec 4 '17 at 19:00
  • Logging POSTs is a great way to accidentally violate all sorts of security/privacy policies by putting passwords and other sensitive data in plain-text somewhere. – ceejayoz Feb 14 '18 at 15:25

The data in all responses and the data in POST requests are not logged. This is the default for most web server/proxy software.

To inspect the data in the POST requests you'll need to look from the backend server or the client.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.