下载日志时应用引擎CPU时间 [英] App engine CPU times when downloading logs
问题描述
管理控制台中日志查看器中的日志消息如下所示:
1.2.3.4 - - [13 / Nov / 2010; 06:16:33 -0800]GET / HTTP / 1.1200 2121http://referrer.example.comMozilla / 4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident / 4.0; GTB6。 6; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)www.example.comms = 30 cpu_ms = 167 api_cpu_ms = 120 cpm_usd = 0.004975
但是,当我使用以下内容下载我的请求日志时:
appcfg.py --num_days = 0 --include_vhost request_logs appdir requests.txt
写入文件的内容如下所示:
1.2.3.4 - - [13 / Nov / 2010:06:16:33 - 0800]GET / HTTP / 1.1200 2121http://referrer.example.comMozilla / 4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident / 4.0; GTB6.6; .NET CLR 2.0.50727 ),gzip(gfe),gzip(gfe)www.example.com
有没有方式来下载缺少的时间信息与我的日志?
谢谢。
使用 - include_all
标志。
appcfg。 py --num_days = 0 --include_vhost --include_all request_logs。 requests.txt
编辑:
如果您还想下载日志消息,请使用 - severity = 0
。
appcfg.py --num_days = 0 --include_vhost --severity = 0 --include_all request_logs。 requests.txt
The log messages in the log viewer in the admin console look like this:
1.2.3.4 - - [13/Nov/2010:06:16:33 -0800] "GET / HTTP/1.1" 200 2121 "http://referrer.example.com" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)" "www.example.com" ms=30 cpu_ms=167 api_cpu_ms=120 cpm_usd=0.004975
However when I use the following to download my request logs:
appcfg.py --num_days=0 --include_vhost request_logs appdir requests.txt
What is written to the file looks like this:
1.2.3.4 - - [13/Nov/2010:06:16:33 -0800] "GET / HTTP/1.1" 200 2121 "http://referrer.example.com" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.6; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)" "www.example.com"
Is there a way to download that missing timing information with my logs?
Thanks.
Use the --include_all
flag too.
appcfg.py --num_days=0 --include_vhost --include_all request_logs . requests.txt
edit:
If you would also like to download the logging messages, use --severity=0
.
appcfg.py --num_days=0 --include_vhost --severity=0 --include_all request_logs . requests.txt
这篇关于下载日志时应用引擎CPU时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!