GAE / J请求日志格式细目 [英] GAE/J request log format breakdown
本文介绍了GAE / J请求日志格式细目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下是GAE控制台日志记录的示例:
Here is a sample of GAE Console log record:
http://i.stack.imgur.com/M2iJX。
http://i.stack.imgur.com/M2iJX.png for readable high res version.
我想提供filled的细目,显示在collpased(摘要)视图和消耗的详细视图。我会填补我知道他们的意义的字段,并希望辅助其余的dichipering。
I would like to provide a breakdown of the fileds, displayed both in the collpased (summary) view and the expended (detail) view. I will fill the fields I know their meaning and would appreciate assistannce with dichipering the rest. This post will be updated once new information is available.
谢谢您,
Maxim。
Thank you,
Maxim.
打开问题:
- 如何读取时间戳? [...- prod / 0-0-39。 346862139187007139 ]
- 为什么总括来说请求花费343ms, li>
- 如果请求在cpu上花费123ms,在API调用上花费30ms,那么剩下的时间在哪里?为什么总请求时间为343 / 344ms?
推荐答案
摘要
- 12-14 :请求的日期。 12 是月份(12月), 14 是月份(星期二)。
- 05:21 AM :请求时间, PST 偏移。 05 是小时。 21 是分钟。
- 57.593 :请求时间, PST 偏移量。 57 是第二个。 593 是毫秒。
- / match /...:HTTP请求路径
- 200 :HTTP返回码。 (200 = OK)
- 343毫秒:计算和向用户返回响应的总时间(以毫秒为单位)
- 123cpu_ms :请求在CPU计算上花费的时间(以毫秒为单位)
- 30api_cpu_ms :时间)请求在API调用上的支出(Datastore get and co ...)
- 1kb :发送到响应的大小(以千字节为单位)
- Mozilla / 5.0(X11; U; Linux x86_64; en-US)AppleWebKit / 534.7(KHTML,如Gecko)Chrome / 7.0.517.44 Safari / 534.7,gzip gfe):用户代理请注意,AppEngine前端添加了gzip(gfe)。
- 12-14 : Date of the request. 12 is the month (December), 14 is the day of the month (Tuesday).
- 05:21AM : Time of the request, PST offset. 05 is the hour. 21 is the minute.
- 57.593 : Time of request, PST offset. 57 is the second. 593 is the millisecond.
- /match/... : HTTP request path
- 200 : HTTP return code. (200 = OK)
- 343ms : The total time (in milliseconds) it took to calculate and return the response to the user
- 123cpu_ms : The time (in milliseconds) the request spend on CPU calculation
- 30api_cpu_ms : The time (in milliseconds) the request spend on API calls (Datastore get and co...)
- 1kb : The size (in kilobytes) of the response that was sent to the user
- Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7,gzip(gfe) : User Agent note that gzip(gfe) is added by AppEngine front end.
- IP
yellow masked out
:发起请求的客户端的IP地址 - HTTP引荐来源网址:请注意
- [14 / Dec / 2010:05:21:57 -0800] :日期,包括时间戳记偏移规格。
- GET / match / ... HTTP / 1.1:HTTP GET URI。
- 200 :HTTP返回码。 (200 = OK)
- 1036 :发送给用户的回复大小(以字节为单位)
- Mozilla / 5.0(X11; U; Linux x86_64; en-US)AppleWebKit / 534.7(KHTML,例如Gecko)Chrome / 7.0.517.44 Safari / 534.7,gzip(gfe):用户代理请注意,AppEngine前端添加了gzip(gfe)。
- ms = 344 :计算并向用户返回响应的总时间(以毫秒为单位)
- cpu_ms = 123 :时间 :api_cpu_ms = 30 :请求在API调用上花费的时间(以毫秒为单位)(Datastore get and co .. )
- cpm_usd = 0.003648 :这笔金额(单位为美元),即1000次请求(如此请求)的费用。 参考
- IP
yellow masked out
: The IP address of the client initiating the request - HTTP Referrer : Note that it's empty on this request because it's a direct hit
- [14/Dec/2010:05:21:57 -0800] : Date, including timestamp offset specification.
- "GET /match/... HTTP/1.1" : The HTTP GET URI.
- 200 : HTTP return code. (200 = OK)
- 1036 : The size (in bytes) of the response that was sent to the user
- Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7,gzip(gfe) : User Agent note that gzip(gfe) is added by AppEngine front end.
- ms=344 : The total time (in milliseconds) it took to calculate and return the response to the user
- cpu_ms=123 : The time (in milliseconds) the request spend on CPU calculation
- api_cpu_ms=30 : The time (in milliseconds) the request spend on API calls (Datastore get and co...)
- cpm_usd=0.003648 : The amount (in us $) that 1000 requests such as this one would cost. ref
- 12-14 :此特定应用程序发出日志条目的日期。 12 是月份(12月), 14 是月份(星期二)。
- 05:21 AM :此特定应用程序发出日志条目的时间, PST 偏移量 :
- 57.833 :请求时间, PST 偏移量。 57 是第二个。 833 是毫秒。
- [...- prod / 0-0-39.346862139187007139] :当前版本的标识符发出此日志消息的应用程序。注意: ...- prod 是应用程序名称。 0-0-39 是已部署的版本名称(app.yaml)。 .346862139187007139 是时间? (以什么格式?),当此版本部署到appengine云。
- stdout :应用程序发送此日志消息的频道。可以是stdout或stderr。
- INFO .... Matcher - ... Id 208匹配:应用程序级别输出。可以通过System.out.print或(在此情况下)使用日志记录框架 logback
- 12-14 : Date of this specific application emitted log entry. 12 is the month (December), 14 is the day of the month (Tuesday).
- 05:21AM : Time of this specific application emitted log entry, PST offset.
- 57.833 : Time of request, PST offset. 57 is the second. 833 is the millisecond.
- [...-prod/0-0-39.346862139187007139] : The identifier of current version of the application that emitted this log message. Note: ...-prod is the application name. 0-0-39 is the deployed version name (app.yaml). .346862139187007139 is the time? (in what format?) when this version was deployed to appengine cloud.
- stdout : The channel to which the application emitted this log message. Can be either stdout or stderr.
- INFO ....Matcher - ... Id 208 matched. : Application level output. Can be done via either System.out.print or (as in this case) using a logging framework, logback
Summary
这篇关于GAE / J请求日志格式细目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文