App Engine Docs say you need to run this:
./appengine-java-sdk/bin/appcfg.sh request_logs myapp/war mylogs.txt
Well this is for Linux. If you are on Windows, here what you need to do:
- Find the location of the “appcfg.cmd” on your computer. I use Eclipse and in my case it was here:
"c:\Program Files\eclipse\plugins\com.google.appengine.eclipse.
sdkbundle.1.4.0_1.4.0.v201012021502\appengine-java-sdk-1.4.0\bin\appcfg.cmd". - Find the location of your app. You need the “war” folder. Here is what I have on my machine:
"c:\svn\mysource\myapp\trunk\war" - And the final step is to put it all together. Open command prompt and type:
"c:\Program Files\eclipse\plugins\com.google.appengine.eclipse.
sdkbundle.1.4.0_1.4.0.v201012021502\appengine-java-sdk-1.4.0\bin\appcfg.cmd" request_logs c:\svn\mysource\myapp\trunk\war mylogs.txt
This will do the magic of downloading your application logs to your computer. Just be patient because it may take a while. In my case downloading 9 hours of logs (~1,000,000 records) took about 30 minutes.
BTW, if you don’t specify the destination folder then file is downloaded into "c:\Documents and Settings\username\" folder.
BTW2, running appcfg.cmd without parameters will show you a help page where you can read how to specify number of days and minimum log level if you need to. By default it will be 1 day of request logs only.
-=Oleg=-
No comments:
Post a Comment