machine learning for machine data
play

Machine learning for machine data David Andrzejewski - - PowerPoint PPT Presentation

Machine learning for machine data David Andrzejewski - @davidandrzej Data Sciences, Sumo Logic Strata Conference Machine Data Track February 13, 2014 1


  1. Machine learning for machine data ¡ David ¡Andrzejewski ¡-­‑ ¡@davidandrzej ¡ Data ¡Sciences, ¡Sumo ¡Logic ¡ Strata ¡Conference ¡– ¡Machine ¡Data ¡Track ¡ February ¡13, ¡2014 ¡ ¡ ¡ 1 ¡

  2. This ¡talk: ¡Machine ¡Learning ¡+ ¡Machine ¡Data ¡= ¡Awesome! ¡ � YES ¡ – overview ¡of ¡log ¡data ¡ – solving ¡log ¡data ¡problems ¡with ¡machine ¡learning ¡ – specific ¡examples ¡ • (mostly) ¡Sumo ¡Logic-­‑related ¡ • customer ¡use ¡cases ¡ – general ¡lessons ¡learned ¡ ¡ 2 ¡

  3. This ¡talk: ¡Machine ¡Learning ¡+ ¡Machine ¡Data ¡= ¡Awesome! ¡ � NO ¡ (or, ¡not ¡much) ¡ – Sumo ¡Logic ¡deep ¡dive ¡ ¡ – Tech ¡stack ¡talk ¡ ¡ • In-­‑memory ¡ Hadoop ¡for ¡real-­‑Ume ¡Cassandra ¡SQL ¡in ¡hybrid ¡clouds ¡ – Big ¡data ¡“shock ¡and ¡awe” ¡ ¡ • 800 ¡yo[abytes ¡/ ¡second ¡ZOMG!!11!! ¡ – Algorithm ¡shootout ¡ ¡ • Deep ¡learning ¡vs ¡random ¡forests ¡vs ¡SVMs ¡vs ¡coin ¡flips ¡vs ¡... ¡ – Extreme ¡math ¡ ≥ ¡ i ) The estimate E is asymptotically almost unbiased in the sense that 1 n →∞ 1 + δ 1 ( n ) + o (1) , where | δ 1 ( n ) | < 5 · 10 − 5 as soon as m ≥ 16 . n E n ( E ) = p 3 ¡

  4. Context: ¡me ¡ � Data ¡sciences ¡@ ¡Sumo ¡Logic ¡ � Co-­‑organizer ¡@ ¡SF ¡ML ¡Meetup ¡ � Previous ¡ – Post-­‑doc ¡in ¡knowledge ¡discovery ¡ � Even ¡more ¡previous ¡machine ¡ ¡ 0.5 data ¡research ¡projects ¡ ¡ 0 PCA3 – University ¡of ¡Wisconsin-­‑-­‑Madison ¡ − 0.5 254 bug1 runs – Microsog ¡Research ¡ 106 bug3 runs − 1 147 bug4 runs 1 329 bug5 runs 206 bug8 runs 0 186 other runs − 0.6 − 0.4 − 1 0 − 0.2 0.2 0.4 0.8 0.6 PCA1 PCA2 4 ¡

  5. Context: ¡Sumo ¡Logic ¡ Search, ¡monitor, ¡visualize ¡ “Turning Machine Data Into IT and Business Insights” ¡ Learn, ¡classify, ¡predict ¡ 5 ¡

  6. Context: ¡Sumo ¡Logic ¡ Search, ¡monitor, ¡visualize ¡ “Turning Machine Data Into IT and Business Insights” ¡ Learn, ¡classify, ¡predict ¡ 6 ¡

  7. Anatomy ¡of ¡a ¡log ¡message: ¡Five ¡W’s ¡ 7 ¡

  8. Anatomy ¡of ¡a ¡log ¡message: ¡Five ¡W’s ¡ � When? ¡Timestamp ¡with ¡Ume ¡zone ¡ 8 ¡

  9. Anatomy ¡of ¡a ¡log ¡message: ¡Five ¡W’s ¡ � When? ¡Timestamp ¡with ¡Ume ¡zone ¡ � Where? ¡Host, ¡module, ¡code ¡locaUon ¡ 9 ¡

  10. Anatomy ¡of ¡a ¡log ¡message: ¡Five ¡W’s ¡ � When? ¡Timestamp ¡with ¡Ume ¡zone ¡ � Where? ¡Host, ¡module, ¡code ¡locaUon ¡ � Who? ¡AuthenUcaUon ¡context ¡ 10 ¡

  11. Anatomy ¡of ¡a ¡log ¡message: ¡Five ¡W’s ¡ � When? ¡Timestamp ¡with ¡Ume ¡zone ¡ � Where? ¡Host, ¡module, ¡code ¡locaUon ¡ � Who? ¡AuthenUcaUon ¡context ¡ � What? ¡ Log ¡level ¡and ¡key-­‑value ¡pairs ¡ 11 ¡

  12. What’s ¡missing ¡ 12 ¡

  13. Traversing ¡the ¡stack ¡ Customer ¡ID ¡ Session ¡ID ¡ 12/20/2011 17:23:44 PST [user=234fsf] failed transaction, Custom ¡App ¡Code ¡ sessionid:2F0A232324, [host=pay002.sjc] amount=1725.00 66.249.67.24 - - [20/Dec/2011:17:23:40 -0700] ”POST /APP/ Open ¡Source ¡Sogware ¡ Order.php HTTP/1.1" 304 146 "-" SESSION=2F0A232324 Job ¡number ¡ 12/20/11 17:23:34 AMQ7163: WebSphere MQ job number 18429 Middleware ¡ started FOR client_session=2F0A232324. 12202011 17:23:27 /usr/local/build/mysql/libexec/mysqld: Databases ¡ Abnormal shutdown [18429] 20-12-2011 17:23:19 database-host login[3866]: DEAD_PROCESS: 18429 Server ¡/ ¡OS ¡ ttys000 Process ¡ID ¡ Dec 20, 2011 17:22:14,,, message=Created virtual machine Root ¡cause! ¡ VirtualizaUon ¡ user-3 on esxi01.office.thedomain.com <134>Dec 20 2011 17:22:12: %PIX-6-106100: access-list Network ¡ inside_access_out denied tcp inside/68.162.72.163(4326) -> outside/45.200.244.124(3127) hit-cnt 1(first hit) 13 ¡ Sumo ¡Logic ¡ConfidenUal ¡

  14. Log ¡use ¡cases ¡– ¡“organizaUonal ¡percepUon” ¡ Enhanced ¡visibility ¡into ¡machine ¡behaviors ¡ � Compliance ¡ – OperaUonal ¡(SLA) ¡ – Regulatory ¡(audits) ¡ ¡ – Security ¡ ¡ � Availability ¡/ ¡performance ¡ – Faster ¡MTTR ¡ � Business ¡insights ¡($$$) ¡ 14 ¡

  15. Log ¡challenges ¡ ¡ � (wildly) ¡varying ¡formats ¡ ¡ – prinq, ¡JSON, ¡XML, ¡Windows, ¡X-­‑delimited, ¡... ¡ � Specialized ¡knowledge ¡ [2008-05-07 09:50:08.450 'App' 3560 verbose] [VpxdHeartbeat] Invalid heartbeat from 10.17.218.46 � Noise ¡ � Cascading ¡failures ¡ ¡ 15 ¡

  16. Complexity ¡ “A ¡distributed ¡system ¡is ¡one ¡in ¡which ¡the ¡failure ¡of ¡a ¡ computer ¡you ¡didn't ¡even ¡know ¡existed ¡can ¡render ¡ your ¡own ¡computer ¡unusable.” ¡-­‑ ¡Leslie ¡Lamport ¡ Square Barbican ¡ Goodge Moorgate Lancaster Chancery Bond Oxford Street Gate Lane Street Circus St. Paul’s 1 Tottenham Holborn Queensway Marble Court Road Bank Arch 3 1 Covent Garden et Green Park Leicester Square on Piccadilly Hyde Park Corner Cannon Street Circus Monument Mansion House Knightsbridge Fenchu Charing Blackfriars Gloucester Cross St. James’s Rive Temple Park Victoria Westminster Sloane Embankment South London Square sington Bridge Waterloo Southwark Pimlico 1 Imperial 16 ¡

  17. “OMG ¡java.lang.NullPointerExcepUon ¡#fail” ¡ ¡ � Logs: ¡like ¡“computer ¡tweets” ¡ � Twi[er ¡2013* ¡ ¡ – Peak ¡@ ¡~144k ¡TPS ¡ ¡ – Avg ¡~6k ¡tweets ¡/ ¡second ¡ � Log ¡data ¡ – Example: ¡1 ¡TB ¡/ ¡day ¡ ¡ – Avg ¡~25k ¡logs ¡/ ¡second ¡ * https://blog.twitter.com/2013/new-tweets-per-second-record-and-how ¡ 17 ¡

  18. Systems ¡that ¡ learn ¡from ¡experience ¡ 18 ¡

  19. Unsupervised ¡clustering ¡ � Given: ¡set ¡of ¡items ¡ � Do: ¡group ¡similar ¡items ¡ 19 ¡

  20. Unsupervised ¡clustering ¡ � Given: ¡set ¡of ¡items ¡ � Do: ¡group ¡similar ¡items ¡ 20 ¡

  21. Too ¡many ¡logs! ¡“data ¡disorientaUon” ¡ ~60k ¡results: ¡30 ¡minutes, ¡one ¡component ¡ ¡ ¡

  22. DisUll ¡logs ¡down ¡to ¡ underlying ¡structure ¡

  23. LogReduce: ¡results ¡"compressed” ¡ ~1000x ¡ ¡ ¡ ¡

  24. In ¡the ¡beginning, ¡there ¡was ¡the ¡prinq() ¡ printf("Health status check: %s is %s”, hostid, hoststatus) Log ¡generaUon ¡ Health status check: zim-5 is OK Health status check: gir-3 is OK Health status check: gir-2 is TIMED OUT Health status check: dib-1 is OK ¡ ¡

  25. Reverse ¡engineering ¡prinq() ¡ printf("Health status check: %s is %s”, hostid, hoststatus) Log ¡generaUon ¡ Health status check: zim-5 is OK Health status check: gir-3 is OK Health status check: gir-2 is TIMED OUT Health status check: dib-1 is OK “magic” ¡ Health status check: *** is *** ¡ ¡ ¡ ¡

  26. Unsupervised ¡clustering ¡ � Given: ¡log ¡messages ¡ � Do: ¡group ¡by ¡“signature” ¡ 1. Define ¡string ¡ distance ¡funcKon ¡ (e.g., ¡Левенште́йн) ¡ ¡ ¡ ¡ ��������� ¡ ¡ �������� ¡ 2. Do ¡ distance-­‑based ¡clustering ¡ ¡ ¡ 26 ¡

  27. Drill-­‑down ¡into ¡the ¡original ¡raw ¡logs ¡ ¡ ¡

  28. ParKally ¡supervised ¡clustering ¡ � Given: ¡set ¡of ¡items ¡+ ¡side ¡info ¡ � Do: ¡group ¡similar ¡items ¡ 28 ¡

  29. ParKally ¡supervised ¡clustering ¡ � Given: ¡set ¡of ¡items ¡+ ¡side ¡info ¡ � Do: ¡group ¡similar ¡items ¡ 29 ¡

  30. Too ¡many ¡wildcards! ¡ 30 ¡

  31. “Hint” ¡from ¡human ¡user ¡ 31 ¡

  32. Not ¡enough ¡wildcards! ¡ 32 ¡

  33. “Hint” ¡from ¡human ¡user ¡ 33 ¡

  34. Learning ¡to ¡rank ¡ � Given: ¡set ¡of ¡items, ¡historical ¡data ¡ � Do: ¡rank ¡by ¡“relevance” ¡ 34 ¡

  35. Two ¡pages ¡is ¡sUll ¡too ¡many! ¡ 35 ¡

  36. Learning ¡to ¡rank ¡ � Given: ¡ signatures, ¡ user ¡acUvity ¡ � Do: ¡rank ¡by ¡ “relevance” ¡ 36 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend