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?
Asked
Active
Viewed 1,135 times
2

miguelfrancisco85
- 372
- 1
- 6

Sanotech Inc
- 21
- 2
-
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](https://cloud.google.com/logging/docs/view/service/agent-logs) to receive logs from the instance. Here is another [documentation](https://cloud.google.com/logging/docs/api/tasks/creating-logs) on writing custom logs. – N Singh Dec 04 '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
1 Answers
2
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.

Matt-y-er
- 136
- 5