开发者

Excluding files from web logs

开发者 https://www.devze.com 2023-02-02 01:12 出处:网络
Looking through my web logs, I see a lot of entries that don\'t interest me. Some of them ar开发者_如何学JAVAe commonly used images, css files, and scripts, which I can easily exclude by un-checking t

Looking through my web logs, I see a lot of entries that don't interest me. Some of them ar开发者_如何学JAVAe commonly used images, css files, and scripts, which I can easily exclude by un-checking the 'log visits' check box in IIS for the folder properties.

I would also like to exclude log entries for certain common requests which are not in their own folders. Mostly, 'favicon.ico'. 'scriptresource.axd', and 'webresource.axd'. These (especially scriptresource.axd) make up almost a third of a typical log file on my site.

So, the question is, how do I tell IIS not to log these requests? And is there any reason that this is a bad idea?


One solution to this, would be to create an another webpage in IIS with a subdomain with loging turned off and move those files to that webpage. Well you will have to update all links to point to that subdomain.

www.domain.com - html

file.domain.com - files (favicon.ico, ...)

0

精彩评论

暂无评论...
验证码 换一张
取 消