Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-29 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Julian, It seems more likely to be an issue with the shell in Windows rather than the SDK, but of course if you can determine that it's not the shell, then you'd want to post this as an issue to the Public Issue Tracker with all information necessary for us

Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-29 Thread Julian Bunn
Hi Nick, Thanks - I had just started doing exactly what you suggest! :-) I crave your indulgence on one other issue ... when I run a gcloud beta logging command with a LOG_FILTER clause on a Unix system, it works fine. For example: gcloud beta logging read 'timestamp<="2017-03-23T00:00:00Z" AND

Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-29 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Julian, You have two options here: either to wait for the google.cloud library to get support for V1 logs, or adopt a slightly different approach to writing the python script. You could use the python subprocess module to call the gcloud

Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-28 Thread Julian Bunn
Thanks, Nick! I confirm that the command "gcloud beta logging read" retrieves our logs! So this looks very promising ... Is there a way to call this interface similarly to: from google.cloud import logging from google.cloud.logging import DESCENDING def main(): client = logging.Client()

Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-28 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Julian, I've observed the identical error when using the filter 'resource.type="gae_app" AND resource.labels.module_id="default"', where I'd deployed a standard environment app on "default". It appears this is caused by the fact that the standard environment doesn't log to Stackdriver v2

Re: [google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-27 Thread Julian Bunn
Hi Nick, Thanks ... I do try StackOverflow from time to time for these sorts of technical issues, but have very limited success. Perhaps I'm using bad tags. See for example a logging related question I posted there on Friday about JSON credentials for logging https://stackoverflow.com/questions/43

[google-appengine] Re: Error when using google.cloud.logging with logging.v1.RequestLog?

2017-03-27 Thread 'Nick (Cloud Platform Support)' via Google App Engine
Hey Julian, I've been able just now to run the same code fine. What might you mean by "the type of logging we use on GAE"? Are you doing anything particularly odd there? It's worth mentioning here that this forum isn't meant for technical support but rather for general discussion of the platfo