Correlating Logs with Requests on Java 11 AppEngine

258 views
Skip to first unread message

Paolo Conte

unread,
Feb 26, 2020, 12:42:36 PM2/26/20
to Google App Engine
Hello,
trying to correlate logs with requests by following the documentation at https://cloud.google.com/appengine/docs/standard/java11/writing-application-logs
Here it says: The highest severity from the "child" log entries does not automatically apply to the top-level entry. If that behavior is desired, manually set the highest severity in the top-level entry.
But how to "manually set the highest severity in the top-level entry" it they are automatically created? Is this even possible? 

Also, correlated logs don't seems to show up on the first request of the instance, on the web console. Is it a bug of the console?

Thanks

Victor (Cloud Support)

unread,
Feb 28, 2020, 7:57:22 AM2/28/20
to Google App Engine

Hi there,


I can see this thread is more of a technical/how-to question.


Since it is not getting much attention here, I suggest you try to post it on Stackoverflow, as these questions usually have greater visibility there.


If you decide to post it there, please remember to tag the question with at least the following tags:

google-app-engine

stackdriver


Regards,

Paolo Conte

unread,
Feb 28, 2020, 8:31:06 AM2/28/20
to Google App Engine
Hi Victor, 
what I'm asking is not really a how-to, but pointing out 1. what seems to be an error in the documentation, but not clear, and 2. what seems to be a bug in the the log viewer.

Thanks

Jason Collins

unread,
Feb 28, 2020, 2:24:23 PM2/28/20
to Google App Engine
"If that behavior is desired, manually set the highest severity in the top-level entry."

You're correct, this isn't possible. I'll have the docs updated.


"correlated logs don't seems to show up on the first request of the instance"

This is a known issue that we are working on fixing (it's due to the "embedded" log with the cold start notification; this defeats the correlation logic).

Paolo Conte

unread,
Feb 29, 2020, 11:31:40 AM2/29/20
to Google App Engine
Thanks Jason
Reply all
Reply to author
Forward
0 new messages