Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request Logs for All Versions of Google App Engine Application

Does anyone know how to request all logs of a Google App Engine application? By all logs, I mean all app versions logs.

We increment the version of our app with every deployment. I have a script that pulls the log files every 30 minutes for some offline analytics.

This is kinda what my script is calling right now. appcfg.py --append --num_days=0 --include_all request_logs /opt/gae/appname/ /var/log/gae/appname.log

This does not get all app versions logs files, but only the version that's specified in the /opt/gae/appname/app.yaml file. The problem is that whatever is in that app.yaml file might not be live, but rather still in development.

It would be nice if we had --version=0 flag that pulled the logs for all the versions, like it does for --num_days=0.

like image 265
Alen D. Avatar asked Jul 14 '12 00:07

Alen D.


People also ask

What is the difference between Google App Engine and Google Compute Engine?

Compute Engine delivers configurable virtual machines running in Google's data centers with access to high-performance networking infrastructure and block storage solutions. App Engine is a fully managed, serverless platform for developing and hosting web applications at scale.


1 Answers

You can fetch the logs using the LogService Api, see parameter version_ids. I'm sure you could modify appcfg.py, to download all version logs.

You could add an issue asking for this feature at http://code.google.com/p/googleappengine/issues/list.

like image 71
Sebastian Kreft Avatar answered Oct 04 '22 02:10

Sebastian Kreft