Presentation is loading. Please wait.

Presentation is loading. Please wait.

LogParser Quicker than SSIS, easier than /

Similar presentations


Presentation on theme: "LogParser Quicker than SSIS, easier than /"— Presentation transcript:

1 LogParser Quicker than SSIS, easier than BCP @fatherjack / jonathan@sqlsouthwest.co.uk

2 Who on Earth is Jonathan Allen? Twitter.com/fatherjack

3 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

4 LogParser in 60 minutes Download Interface Syntax Some examples of LogParser in use Common problems and how to deal with them Help + support

5 Download Tiny application - 1Mb download! From … http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24659 http://j.mp/nCxRuP http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24659

6 LogParser environment Command line interface SQL like syntax to select data Some simple parameters to control output Only 4 data types – INT, STRING, REAL, TIMESTAMP

7 Data types INT (64 bit) -2 ^63 through 2 ^63-1 String Real ±5.0*10 -324 through ±1.7*10 308 Timestamp TinyInt, SmallInt, Int, BigInt VarChar Decimal/Float/Money Date/Time/DateTime Jonathan Allen © - May 2011 LogParser data type SQL Server data type

8 Help and support Great Help chm file included Good support on http://www.iis.net forumhttp://www.iis.net

9 The Ins and Outs of LogParser ADS BIN COM CSV ETW EVT FS HTTPERR IIS IISODBC IISW3C NCSA NETMON REG TEXTLINE TEXTWORD TSV URLSCAN W3C XML Jonathan Allen © - May 2011 CHART CSV DATAGRID IIS NAT SQL SYSLOG TPL TSV W3C XML Input formatsOutput formats

10 The Ins and Outs of LogParser ADS BIN COM CSV ETW EVT FS HTTPERR IIS IISODBC IISW3C NCSA NETMON REG TEXTLINE TEXTWORD TSV URLSCAN W3C XML Jonathan Allen © - May 2011 CHART CSV DATAGRID IIS NAT SQL SYSLOG TPL TSV W3C XML Input formatsOutput formats

11 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

12 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.

13 Demo

14 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.

15 Tips and tricks #01 Both * and % are wildcards – be careful Use –fixcolnames Use –queryinfo to diagnose issues Use –h to get help …

16 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

17 … and finally

18 What now..? Next sessions Drinks and socialise Speak to exhibitors, if you haven't already. Speak to Community Corner about your local user group.

19 Contact me Blog – http://www.simple-talk.com/community/blogs/jonathanallenhttp://www.simple-talk.com/community/blogs/jonathanallen SQL forum moderator – http://ask.sqlservercentral.comhttp://ask.sqlservercentral.com Twitter - @Fatherjack SQLSouthWest PASS chapter – jonathan@sqlsouthwest.co.ukjonathan@sqlsouthwest.co.uk Friend of Red Gate - http://www.red-gate.comhttp://www.red-gate.com Jonathan Allen © - May 2011

20 Europe’s Premier Community SQL Server Conference

21 Platinum Sponsor Premium Sponsor

22 Please visit our Gold Sponsor stands, we couldn't do it without you…

23 Silver, Bronze and Exhibitors All of you…

24 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

25 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!

26 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

27 On Next… Prize giving in the Exhibition Area # SQLBITS

28 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

29 Thank you for coming # SQLBITS


Download ppt "LogParser Quicker than SSIS, easier than /"

Similar presentations


Ads by Google