我跟踪了链接https://www.iis.net/configreference/system.webserver/odbclogging并做了以下操作:
appcmd.exe设置配置“默认网站”-部分:system.webServer/odbcLogging /dataSource:"InternetDb“/commit:apphost
appcmd.exe设置配置“默认网站”-部分:system.webServer/odbcLogging /tableName:"InternetLog“/commit:apphost
appcmd.exe设置配置“默认网站”-部分:system.webServer/odbcLogging /userName:"InternetAdmin“/commit:apphost
appcmd.exe设置配置“默认网站”-部分:system.webServer/odbcLogging /password:"P@ssw0rd“/commit:apphost
appcmd.exe设置站点“默认网站”-logFile.logFormat:“自定义”/commit:apphost
-logFile.customLogPluginClsid:"{FF16065B-DE82-11CF-BC0A-00AA006111E0}“/commit:apphost : appcmd.exe set Site”Default Web站点“
我做错什么了?
发布于 2016-07-26 17:58:21
我只是尝试自己使用ODBC日志。按照您提到的说明,没有任何记录。
我在网上找不到很多有关ODBC登录的信息,我想是因为你不应该真的使用它。但我的IIS 8书中有一本提到:
CustomLoggingModule -加载自定义日志模块,这些模块可用于生成自定义格式化日志.Microsoft的ODBC日志记录选项是作为自定义日志扩展实现的。
因此,要使ODBC日志工作,还需要安装CustomLoggingModule,而我没有安装。
跑完后:
Enable-WindowsOptionalFeature -online FeatureName IIS-CustomLogging或者在2012年前的服务器上:
dism.exe -online -enable-feature -featurename:IIS-CustomLoggingodbc日志对我有用。
https://serverfault.com/questions/791963
复制相似问题