Need to access GAE logs programmatically
we have a GWT application hosted in GAE. We use gwt-log (http:// code.google.com/p/gwt-log/) to log our client side and server side exceptions. What we need to do is to run a cron job every day at the midnight to create a report on all the exceptions (ex. listing source, exception time, count, etc). In order to do this, we need to access GAE logs promrammatically through API call or something from our server side code. Is this possible? Is the log data accessible? If this is not possible, what is a best way to summarize errors in the logs? Thank you so much.
The ereporter module Calvin links to shows how to do this in Python. What it does isn't reading logs programmatically: instead, it registers a custom log handler which captures all exception logs and stores them in the datastore. Then, a cron job rolls up exceptions that occurred in that interval and emails them to an administrator. You should be able to apply the same technique in java with the logging infrastructure, without having to be able to programmatically read the logs.
Have a look to the LogService API. It offers methods to examine an application's request logs and application logs.
Google Cloud DataStore. How to serve data?
How to access a cloud storage bucket from app engine without getting the 403 FORBIDDEN error?
Google App Engine Custom Domain - Routing in Go
Best approach for caching lists of objects in memcache
com.google.gcloud.datastore vs com.google.appengine.api.datastore
Google App Engine - Issue with creating a bulkloading config
Solr Timeout error even data is instered
Why does BigQuery fail to parse an Avro file that is accepted by avro-tools?
Insufficient Permission with Appengine Flex service account to access Drive folder
Getting Invalid Key message thrown when creating child records
Where do I find the pricing for the different frontend instance types?
Missing index on specific entities in app engine
Get current deployed timestamp in AppEngine/Go
Jersey throwing exception in Google App Engine
Uploading >10k files as static content to GAE
Dealing with large zip uploads and extracting using google cloud