user1055761
user1055761

Reputation: 1071

How to filter log messages above a certain response size in App Engine Log viewer?

Based on the LogViewer documenation I am hoping to be able to use httpRequest FIELDS in an expression to filter log messages.

Within the Advanced Filter, I have tried to use

httpRequest.responseSize > 10000

But has not worked. Any suggestion on what I might be doing wrong or if there is any other way to do this.

I am using logger from the console (https://console.developers.google.com/logs). Please note that I have appended the above line to the others that 'convert to advance filter' shows as follows.

metadata.serviceName="appengine.googleapis.com"
metadata.labels."appengine.googleapis.com/module_id"="default"
metadata.labels."appengine.googleapis.com/version_id"="myAppId"
log="appengine.googleapis.com/request_log"
metadata.severity>=INFO
httpRequest.responseSize > 10000

Thanks.

Upvotes: 2

Views: 750

Answers (1)

Zeehad
Zeehad

Reputation: 1102

Try using the following

protoPayload.responseSize>10000

Upvotes: 1

Related Questions