barak manos
barak manos

Reputation: 30136

View the arguments of a POST-Request in Google App Engine logs

I have a server running over Google App Engine.

I am viewing my server's request-log via the console.

They are located under Google Cloud Platform --> Stackdriver Logging --> Logs.

I would like to view the arguments of a POST-Request.


With a GET-Request it is easy, as they are visible in the title of the entry.

They are also viable in the body of the entry, under protoPayload --> resource.

With a POST-Request, however, they are nowhere to be found.

Here are my options:

None of these options seem to contain the arguments of the request.

From this answer, I understand that they should be within the request-body.

How can I find them within GAE logs?

Upvotes: 13

Views: 8588

Answers (1)

Rusty Rob
Rusty Rob

Reputation: 17193

post request data isn't shown in request logs.

In your app, you must explicitly log it

logging.log(myRequest.PostData)

Edit: just be careful logging sensitive customer information.

Upvotes: 6

Related Questions