Save 37% off PRO during our Black Friday Sale! »

Graph Deep Dive

Graph Deep Dive

【Developers.IO 特別編】Elastic 勉強会 プレゼンテーションデッキ
Elasticsearch 2.3, Kibana 4.5 で導入された Graph のユースケース、利点を紹介します。

34cbde72de5f384380d5489543294dc5?s=128

Kosho Owa

April 12, 2016
Tweet

Transcript

  1. ‹#› Kosho Owa, Solutions Architect, Elastic April 12th, 2016 Graph

    Deep Dive Elastic{ON} Mini-Recap
  2. Elastic Cloud Security Monitoring Alerting Graph X-Pack Kibana User Interface

    Elasticsearch Store, Index,
 & Analyze Ingest Logstash Beats + Elastic Stack, X-Pack, Cloud and Graph Elastic Stack
  3. Graphͷ Ϣʔεέʔε

  4. ϦεΫΛ໌Β͔ʹ͢Δ ΫϨδοτΧʔυͷར༻ཤྺΑΓ • ͲͷΑ͏ͳళฮͰෆਖ਼ʹར༻͞Ε͍ͯΔ͔ • Χʔυ൪߸͕ྲྀग़ͨ͠ݪҼ͸ ΦϯϥΠϯήʔϜͷӡӦͰ • ෆਖ਼ʹΞΠςϜΛೖख͢ΔϢʔβͷಛ௃͸Կ͔ •

    ΞΠςϜͷෆਖ਼औҾʹ࢖༻͞Ε͍ͯΔӅޠ͸Կ͔
  5. ؔ܎ੑΛൃݟ͢Δ ϑΝΠΞ΢ΥʔϧͷϩάΑΓ • ෆਖ਼ͳ֎෦΁ͷSSH઀ଓΛݟ෼͚Δʹ͸ • ΢Πϧεײછ͕ೝΊΒΕͨ࣌ʹɺଞͷײછPCΛಛఆ ͍ͨ͠ ϩʔϯͷར༻ • ઐۀओ්͸ςϨϏΛങ͏ͨΊʹϩʔϯͰ͖Δ͔

    • ֎ࠃਓ࿑ಇऀ͸ϚϯγϣϯΛߪೖͰ͖Δ͔
  6. “Ϩίϝϯυ”͢Δ ΦϯϥΠϯγϣοϐϯάαΠτͰ • ϏʔϧΛߪೖ͢Δஉੑʹ͸ԿΛקΊΔ͔ • ϛΩαʔΛݕࡧ͍ͯ͠ΔϢʔβ͕Ӿཡ͍ͯ͠Δ঎඼͸ Կ͔ SNSͷ޷͖ͳΞʔςΟετͷϦετΑΓ • ϞʔπΞϧτ޷͖ͷχϫΧΫϥογοΫϑΝϯ͕࣍ʹ

    ฉ͘΂͖͸ • ೔ຊɾγϯΨϙʔϧͷ༑޷ͷՍ͚ڮͱͳΔԻָՈ͸?
  7. σʔλ

  8. { "title": "Elastic{ON} Recap Seminar", "date": "2016-04-12", "venue": "SAP Japan",

    "location": “35.6845063, 139.7397771", "organizer": ["Classmethod", "Elastic"], "capacity": 200, "confirmed": true, "created_at": "2016-03-01T01:01:01.000Z” } σʔλ͸ϑϥοτͰ͸ͳ͍ ༷ʑͳσʔλλΠϓͱߏ଄
  9. σʔλؒͷؔ࿈ ಉ͡өը͕޷͖ͳϖΞΛݟ͚ͭΔͷ͸ࠎ͕ંΕΔ { "name": “John Stiles", "birthday": "1976-08-07", “favorite_movies”: [“star

    wars”, “anchorman”, “dodge ball”] } { "name": “Richard Roe", "birthday": "1982-11-21", “favorite_movies”: [“forrest gump”, “talladega nights”, “anchorman”] }
  10. ϊΠζͱઓ͏

  11. ‹#› ๫ྗ൜ࡑͷ98%͸ɺ ύϯΛ৯΂͔ͯΒ24࣌ؒҎ಺ʹ ൃੜ͍ͯ͠Δ ΞϝϦΧͰͷௐࠪ݁Ռ

  12.      δοϓ(Zipf)ͷ๏ଇ 16% 84%

  13. Graphͷ࣮૷

  14. GET apache-2015.09/_search { "size": 0, "query": { "filtered": { "query":

    { "query_string": { "query": "response:304" }}}}, "aggs": { "2": { "significant_terms": { "field": "geoip.ip.raw", "size": 5 }}}} “Significant Term” Aggregation Apacheͷϩά͔Β߈ܸݩΛಛఆ͢Δ
  15. GET apache-2015.09/_graph/explore { "controls": { "use_significance": true }, "vertices": [{

    "field": "response", "include": [ { "term": “304" }]}], "connections": { "vertices": [ { "field": “geoip.country_name.raw”, "size": 5 }]}} `_graph` API ߈ܸͷιʔεʹͳ͍ͬͯΔࠃΛಛఆ͢Δ
  16. GraphϢʔβʔΠϯλʔϑΣΠε ΞϝϦΧ͔Β઀ଓ͍ͯ͠ΔIPΞυϨεΛಛఆ͢Δ

  17. Graphͷར఺

  18. Graphͷར఺ • ୳ࡧΛՄೳʹ͢ΔAPIͱUI • Plug-in/X-Packͱͯ͠ͱ༰ қʹಋೖͰ͖Δ • طଘͷJOEFYͰ࣮ߦͰ͖Δ • ෼ࢄ؀ڥͰಇ͘

    • /FBSSFBMUJNF Graph as X-Pack Elasticsearch
  19. Apache ΞΫηεϩά Last.fm σʔληοτ σϞ εΫϦʔϯγϣοτ

  20. ‹#›

  21. ‹#›

  22. ‹#›