Use this command to fetch the application logs from Google App Engine:

appcfg.py request_logs --num_days=210 --include_all Documents/path/to/your_gae_app/ mylogs.txt --oauth2

  • Alternatively you can write a handler by using logs API.

https://cloud.google.com/logging/docs/install/logs_export

  • And second alternative you can analyze logs by piping them into BigQuery.

https://console.developers.google.com/project/_/logs