邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-10-27 14:29

[转载]ISA日志不能正常写入SQL表中的解决办法

文章作者:Inspiration

检查ISA服务器日志的是否正常时候,发现ISA的日志不能往SQL里面写,以至于日志分析程序得不到正常的结果。
查看该服务器上的事件查看器,没有发现异常日志。
随后重新启动了相关服务,在事件查看器中发现如下错误:

Event Type: Error
Event Source: Microsoft Web Proxy
Event Category: Log
Event ID: 6
Date: 10/25/2005
Time: 9:48:05 AM
User: N/A
Computer: ISAComputer
Description:
The Microsoft Web Proxy failed to log information to ODBC Data Source isalog, Table: WebProxyLog, under User Name [UserName]. The ODBC Error description is: [State=01004][Error=0][Microsoft][ODBC SQL Server Driver]Fractional truncation [State=23000][Error=2627][Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 'PK_WebProxyLog'. Cannot insert duplicate key in object 'WebProxyLog'. [State=01000][Error=3621][Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. . For more information about this event, see ISA Server Help.

于是,重新修改WebProxyLog的Primary Key,增加了一个字段。随即查看SQL服务器中WebProxyLog表的内容,已经有新的日志产生了。

页: [1]
© 1999-2008 EvilOctal Security Team