Presentation on theme: "LogParser Quicker than SSIS, easier than /"— Presentation transcript:
LogParser Quicker than SSIS, easier than BCP @fatherjack / firstname.lastname@example.org
Who on Earth is Jonathan Allen? Twitter.com/fatherjack
Who on Earth is Jonathan Allen? Local Government 13 years – accountancy/tax collection. Systems engineer and DBA since 1999 SQL Server 6.5, 7, 2000, 2005 and 2008 Blog, Twitter, PASS Chapter leader - SQL South West PASS UK Regional Mentor
LogParser in 60 minutes Download Interface Syntax Some examples of LogParser in use Common problems and how to deal with them Help + support
LogParser modes Query Execution Mode (default) – Reads from Input and writes to Output Conversion Mode – Relates to working with W3C/IIS formats Defaults Override Mode – Used to change defaults to popular settings Help Mode – LOGPARSER -h
Common uses Rapid import of data from multiple files/sources/locations. Filtering, aggregation of data during import. Importing text data. Monitoring of enterprise event logs.
LogParser Security considerations Source data connections are vulnerable If a checkpoint file is used make sure it is secure to prevent undesirable results by using ACL on secure network location. Usernames, passwords and data are sent in plain text by default so should be used advisedly over a network. Consider using ODBC.
Tips and tricks #01 Both * and % are wildcards – be careful Use –fixcolnames Use –queryinfo to diagnose issues Use –h to get help …
Tips and tricks #02 Help: -h GRAMMAR : SQL Language Grammar -h FUNCTIONS [ ] : Functions Syntax -h EXAMPLES : Example queries and commands -h -i: : Help on -h -o: : Help on -h -c : Conversion help E.g. LogParser -h -evtorLogParser -h functions
Monday 3rd October Manchester - Manchester SQL Server User Group Birmingham - SQL Midlands User Group Farnham - Surrey SQL Server User Group Ashford - Kent SQL Server and.NET User Group Tuesday 4th October Leeds - Leeds Area SQL Server User Group London - London SQL Server User Group Bristol - SQL Server Club Hatfield - SQL Herts User Group Maidenhead - Maidenhead SQL Server User Group Wednesday 5th October Edinburgh - Scottish Area SQL Server User Group Cardiff - Cardiff SQL Server User Group Exeter - SQL South West User Group Southampton - Southampton SQL Server User Group Cambridge - Cambridgeshire SQL Server User Group Basildon - Essex SQL Server User Group Thursday 6th October London - UK SQL Server User Group SQL Relay events
Another community days: DDDNorth - Sunderland Saturday 8 th October http://developerdeveloperdeveloper.com/north http://developerdeveloperdeveloper.com/north DunDDD – Dundee Saturday 19 th November http://dundee.dddscotland.co.uk Another slide Martin has slipped in without telling me!
Feedback Please complete your feedback and another chance to win the latest XBOX 360 http://sqlbits.com/sqlbits9Thursday http://sqlbits.com/sqlbits9Friday http://sqlbits.com/sqlbits9Saturday http://sqlbits.com/sqlbits9Feedback
On Next… Prize giving in the Exhibition Area # SQLBITS
We hope you had a great conference! Keep checking www.sqlbits.com for slide, videos and news of the next conference www.sqlbits.com # SQLBITS