Exporting SharePoint usage log files into a database using LogParser

前端 未结 5 1783
臣服心动
臣服心动 2021-01-01 06:38

So basically we have lots of SharePoint usage log files generated by our SharePoint 2007 site and we would like to make sense of them. For that we\'re thinking of reading th

5条回答
  •  抹茶落季
    2021-01-01 07:10

    This is the script we use to load IIS log files in a SQL Server database:

    LogParser "SELECT * INTO  FROM " -o:SQL -server: -database: -driver:"SQL Server" -username:sa -password:xxxxx -createTable:ON
    

    The , , , and sa password need to be changed according to your specs.

    From my experience LogParser works really well to load data from IIS logs to SQL Server, so a mixed approach is the best:

    • Load raw data from IIS log to SQL Server using LogParser
    • Use SSIS to extract and manipulate data from the temporary table containing the raw data in the final table you'll use for reporting.

提交回复
热议问题