You know how people always say App Engine doesn't require any system administration? Over time you still deal with a number of little issues like... log files. (Here is where my date becomes drowsy. Well, would become drowsy.)
The log viewer provided in the admin interface is great for quick checks of a few recent events, but it can be somewhat unresponsive at times. Also, it is natural to want to do some kind of analysis over a larger number of events. Also, the ring buffers have limited capacity and drop events. So it can be nice to get a local copy of logs and work with them from there. And in this vein, Google has graciously given us appcfg.py request_logs (which we can use with the standard suite of text tools like awk/grep, etc.) But the behavior of appcfg.py request_logs is a little complex and there are a few little practical obstacles to, say, using it in an hourly cron job. I found myself doing very similar kinds of analysis over and over again, started to automate them with a patchwork of tools, and nothing to do it for me was at hand, so I thought "why not just do all this in Python 3"? So I did, and I hammered out a little tool good enough to use on my own projects to manage logs. It has made me happy in the way that only a log manipulation tool can do. Today I put the code up on bitbucket under an MIT license: https://bitbucket.org/sashahart/aeluc (That page should also allow you to download a .tgz or .zip or whatever, if mercurial gives you hives - go to 'get source' at the upper right; git masters should have no problem coping). I'm aware that this is a bit rough (as in: the code's not beautiful and I don't warrant that it won't somehow ruin your life). And the support I can provide is limited. But I welcome all feedback and want to improve the tool for more general use. Please use or adapt it any way you like and let me know how you used it! Enjoy! -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
