简体   繁体   English

IIS记录问题

[英]IIS logs questions

I have few questions related to iis logs : 我对iis logs有一些疑问:

1)I have noticed many iis logs contain the same information but row are duplicated, why is it so? 1)我注意到许多iis logs包含相同的信息,但是行重复了,为什么呢?

2)For the same cookie in some rows Asp.net sessionID remain missing. 2)对于某些行中的同一cookie, Asp.net sessionID仍然丢失。 For example if there are 5 rows for the same cookie then in the first 2 rows there is no Asp.net sessionid and for rest 3 everything is fine, why? 例如,如果同一cookie有5行,那么在前2行中没有Asp.net sessionid ,对于其余3行,一切都很好,为什么呢?

3)Is there any way through which i can find out the time spent by user in the last visited page. 3)有什么办法可以找出用户在上次访问的页面上花费的时间。 Reason being, we don't have any DateTime information after last visited page? 原因是,我们上次访问页面之后没有任何DateTime信息吗?

Question 1 IIS log mystery. 问题1 IIS日志之谜。

what you see as one page access is actually several accesses try and use Fiddler it will show you the connection steps. 您看到的一页访问实际上是几次访问,请尝试使用Fiddler,它将向您显示连接步骤。

EX:
I want page A -> no you need to authenticate     -> no sessionID
how can I authenticate -> you need to do this    -> no sessionID
here is my authentication -> here is page A.     -> sessionID is present.

Question 2 find out the time spent on page. 问题2找出在页面上花费的时间。

there is no reliable way of finding this you can approximate by sending some start message on page load and one adder on page leave (but you are depending on client code and you never trust on client code). 没有可靠的方法可以找到此信息,您可以通过在页面加载时发送一些开始消息,在页面离开时发送一个加法器来近似(但是您依赖于客户端代码,并且您从不信任客户端代码)。

  1. If you have several requests to the same page at the same time, and browsers are the same, it will look like you have duplicated rows (it's just more than 1 user hitting the page at once). 如果您同时对同一页面有多个请求,并且浏览器相同,则看起来您有重复的行(一次点击该页面的用户超过1个)。 If the IPs are the same, it's most likely a handshake, as Pedro.The.Kid pointed out, or you may have some very strangely behaving code. 如果IP相同,则很可能像Pedro.The.Kid所指出的那样握手,否则您可能会有一些非常奇怪的行为代码。

  2. See ASP.NET_SessionId is missing 看到缺少ASP.NET_SessionId

  3. You might be able to track this in your application code. 您可能可以在应用程序代码中进行跟踪。 Do you want to track it in your application or through your IIS log? 您要在应用程序中还是通过IIS日志来跟踪它? Also, what exactly are you trying to do with that information? 另外,您到底想用这些信息做什么? Google Analytics will be able to give you approximate page view times and other information. Google Analytics(分析)将能够为您提供大约的页面浏览时间和其他信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM