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 the log files and dumping into a database with the appropriate columns and all. Now I was going to make an SSIS package to read all the text files and extract the data when I came across LogParser. Is there a way to use LogParser to dump data into an Sql Server database or the SSIS way is better? Or is there any other better way to use the SharePoint usage logs?
相关问题
- sql execution latency when assign to a variable
- What is the best way to cache a table from a (SQL)
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
- Sharepoint multiple connections to a web parts
相关文章
- Entity Framework 4.3.1 failing to create (/open) a
- Code for inserting data into SQL Server database u
- Delete Every Alternate Row in SQL
- Linux based PHP install connecting to MsSQL Server
- SQL Azure Reset autoincrement
- How do we alias a Sql Server instance name used in
- Is recursion good in SQL Server?
- How can I convert a OLE Automation Date value to a
This is the script we use to load IIS log files in a SQL Server database:
The
<tablename>, <logfilename>, <servername>, <databasename>
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:
If you want more in-depth reporting and have the cash and computer power you could look at Nintex Reporting. I've seen a demo of it and it's very thorough, however it needs to continuously run on your system. Looks cool though.
You'll have to write a plugin to logparser. Here is what I did:
This is the blog post I used to get all the info needed. It is not necessary to go to the length of custom code.
In brief, create table script:
Call to make log parser load in the data for a file
Sorry I found out that Sharepoint Logs are not the same as IIS logs. They are different. How can we parse them?