一 MS Proxy用法2( 二 )


14. 发送字节数(BytesSent):Proxy Server发送给客户机的字节数 。假如没有信息发给客户机,该字段可能为空 。只有Web Proxy使用该字段 。
15. 接收字节数(BytesRecv):该字段记录Proxy Server由客户机处收到的字节数 。其大小是客户机发给Proxy的请求数量 。和前个字段一样,该字段仅由Web Proxy使用 。假如该字段在Web Proxy日志中为空,可能是客户机没有发送数据或是没有提供大小信息 。
16. 协议名称(Protocol):在Web Proxy日志里,该字段的内容是:HTTP, FTP, Gopher, or Secure,根据客户使用的协议而不同 。在Winsock Proxy日志里,该字段是客户机连接的常用数字协议(例如:SMTP连接的110)
17. Transport:客户机与Proxy Server之间使用的传输方法 。Web Proxy连接总是TCP 。Winsock Proxy连接会是TCP、UDP或是IPX/SPX 。
18. Operation:记录Proxy Server执行的转输操作 。Web Proxy能记录GET、PUT、POST和HEAD 。WinSock Proxy能记录Connect、Accept、SendTo、RecvFrom和GetHostByName 。
19. 对象名称(Object Name):该字段记录Web Proxy收到的对象名称,WinSock Proxy日志该字段为空 。
20. Object MIME:仅Web Proxy使用该字段 。记录收到的MIME类型对象 。假如目标服务器未定义或不支持,该字段会包含如下字符串:
MIME Type Definition
application/x-msdownload Application
image/gif GIF Image
image/jpeg JPG Image
multipart/x-zip ZIP Archive
text/plain ASCII Text File
21. Object Source:只有Web Proxy使用,该字段记录对象由何处而来 。记录内容如下:
n Field Value Definition
n Unknown Proxy Server could not determine where the object originated.
n Cache Object found in cache.
n Rcache Object found on Internet. Objects was added to cache.
n Vcache Object found in cache. Object was verified against target object on Internet.
n NVCache Object found in cache but could not be verified against target object on Internet. Object was still returned to client.
n VFInet Object found on Internet. Object could not be verifed against source.
n PragNoCacheInet Object found on Internet. HTTP header indicates that the object should not be cached.
n Inet Object found on Internet. Object was not added to the cache.
1. 结果代码(Result code):该字段是连接到的Internet站点返回关于收到对象的结果代码 。该字段值的范围非常广,Web Proxy和the WinSock Proxy在该字段记录不同的值 。在Web Proxy记录里,低于100的值代表Windows错误代码,在100和1000之间是HTTP状态代码,10000以上的值是Wininet或WinSock错误代码 。Web Proxy记录的三个最常见的代码是200(成功连接)、10060(连接超时)、10065(未达到主机) 。在WinSock Proxy记录里,该字段的值是下列代码之一:
Code Definition
0 SUCcessful Connection
1 Server Failure
2 Rejection by Proxy due to filtering
3 Network unreachable due to no DNS service available.
4 Host unreachable because no DNS entry could be found for the host.
5 Connection refused by target Internet site.
6 Unsupported client request (perhaps the client is using a non-compliant TCP/IP stack or the WinSock call is from a non-supported version.
7 Unsupported Address type.
具体字段与一般字段
当选择一般记录时,有些字段会简单的用"-"来填充,具体记录会记录前面列表中所有已知数据 。一般日志仅记录下面的字段:
Client Computer IP
Client User Name
Authentication Status
Date Logged
Time Logged
Server Name
Destination Name
Destination Port
Protocol Name
Object Name
Object Source
Result Code
阅读日志有时会非常糊涂,因为有时看上去代理服务器没有记录正确的信息 。最重要的是记住保持字段顺序的正确,很快你就能正确地理解它们了 。

推荐阅读