简体   繁体   中英

How do I get site usage from IIS?

我想建立一个 User-Url 列表我该怎么做?

By default, IIS creates log files in the system32\\LogFiles directory of your Windows folder. Each website has its own folder beginning in “W3SVC” then incrementing sequentially from there (ie “W3SVC1”, “W3SVC2” etc). In there you'll find a series of log files containing details of each request to your website.

To analyse the files, you can either parse them manually (ie suck them into SQL Server and query them) or use a tool like WebTrends Log Analyser . Having said that, if you really want to track website usage you might be better off taking a look at Google Analytics . Much simpler to use without dealing with large volumes of log files or paying heft license fees.

if you have any means of identifying your users via web server logs (eg username in the cookie) then you can do it by parsing your web logs and getting info from csUriquery and csCookie fields.

Alternatively you can rely on external tracking systems (eg Omniture)

I ended up finding the log files in C:\\inetpub\\logs\\LogFiles .

I used Log Parser Studio from Microsoft to parse the data. It has lots of documentation on how to query iis log files, including sample querys.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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