使用LogParser 将iis日志导入到数据库中

--注意修改日志位置和表名
--u_ex180228.log 日志所在位置

--IISLog 表名
--IISLog_table_0228 表名
"C:\Program Files (x86)\Log Parser 2.2\LogParser.exe" "SELECT * FROM D:\LogFiles\W3SVC1\u_ex180228.log TO IISLog_table_0228" -o:SQL -server:. -driver:"SQL Server" -database:IISLog -username:sa -password:123456 -createtable:ON

posted @ 2018-03-02 11:22  听浪  阅读(440)  评论(0编辑  收藏  举报