2013-07-09 175 views
1

我正在使用Windows Azure虚拟机并安装了IIS媒体服务。我在这个虚拟机发布点上使用Expression Encoder进行编码。IIS 7 HTTP错误日志文件

这下Ç创造了太多错误日志文件:\ WINDOWS \ SYSTEM32 \ LogFiles文件\ HTTPERR。这是增加驱动器的大小。我必须手动删除这些文件。

我想停止创建这些日志文件。

这里是我的尝试:

Help link

我运行在命令提示符下键入以下命令:

CD C:\Windows\System32\inetsrv 

appcmd.exe set config "Default Web Site" -section:system.webServer/httpLogging /dontLog:"True" /commit:apphost 

结果:从HTTP错误文件

C:\Windows\System32\inetsrv>appcmd.exe set config "Default Web Site" -section:sy 
stem.webServer/httpLogging /dontLog:"True" /commit:apphost 
Applied configuration changes to section "system.webServer/httpLogging" for "MAC 
HINE/WEBROOT/APPHOST/Default Web Site" at configuration commit path "MACHINE/WEB 
ROOT/APPHOST" 

示例文本[文件大小为1 MB]:

#Software: Microsoft HTTP API 2.0 
#Version: 1.0 
#Date: 2013-07-09 11:35:50 
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename 
2013-07-09 11:35:50 168.62.194.141 57005 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0 
2013-07-09 11:35:50 168.62.194.141 57007 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0 
2013-07-09 11:35:50 168.62.194.141 56033 10.146.242.42 80 HTTP/1.1 POST /PP/TEST.isml/Streams(Encoder1) - 1 Request_Cancelled ASP.NET+v4.0 

回答

1

我还没有看到该命令......所以我不知道这是否会工作......但是这应该工作...

http://support.microsoft.com/?id=820729

+0

嘿!我在发布之前尝试过,但那次我使用了“**为我修复:禁用HTTP API错误日志记录**”工具,它停止了我的IIS和IIS媒体服务,所以我撤消了这个。但是这一次我和“**让我自己修复它”一起选择,它对我很有用。 :)非常感谢你为这[链接](http://support.microsoft.com/?id=820729&wa=wsignin1.0#LetMeFixItMyselfAlways)。 – Devendra

+2

由于某种原因链接断开,可以在这里找到:http://support.microsoft.com/kb/820729/en-us#LetMeFixItMyselfAlways –