Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elasticsearch 勉強会 2/2

A6ad06db0fdd12a69bd2a92e8280247e?s=47 Kunihiko Kido
July 04, 2017
1.3k

Elasticsearch 勉強会 2/2

A6ad06db0fdd12a69bd2a92e8280247e?s=128

Kunihiko Kido

July 04, 2017
Tweet

Transcript

  1. &MBTUJDTFBSDIษڧձ̎ 

  2. ࣗݾ঺հ w ໦ށࠃ඙ʢ,VOJIJLP,JEPʣ w ϕϧτϥגࣜձࣾʢ7&-53"$PSQPSBUJPOʣ w $4޲͚ιϦϡʔγϣϯاըɾ։ൃ w ࣗવݴޠॲཧશจݕࡧΤϯδϯˍػցֶश

  3. "CPVU7&-53" :PVSTUPSZCFHJOTIFSF ISWFMUSBDPN

  4. w ࠓճͷ಺༰͸ɺՍۭͷݕࡧγφϦΦΛ΋ͱʹɺ&MBTUJDTFBSDIͷઃܭʹͭ ͍ͯઆ໌͠·͢ɻ౰ࢿྉͰ͸ɺ࿦ཧతͳΠϯσοΫεͷઃܭɺυΩϡϝϯ τઃܭɺΫΤϦઃܭΛத৺ʹղઆ͠·͢ɻ

  5. None
  6. ݕࡧγφϦΦ࣮ߦ؀ڥ

  7. γφϦΦ࣮ߦ؀ڥͷೖख w ҎԼͷαΠτ͔ΒγφϦΦ࣮ߦ؀ڥΛೖखՄೳ w IUUQTHJUIVCDPN,VOJIJLP,JEPEPDLFSFMLNPWJFMFOT w ౰γεςϜΛ࣮ߦ͢Δʹ͸ɺ%PDLFS$PNQPTF͕ಈ࡞͢Δ؀ڥΛ༻ҙ͠ ͍ͯͩ͘͞ɻ

  8. γεςϜ֓ཁ w .Z42- w &MBTUJDTFBSDI w -PHTUBTI .PWJF  w

    -PHTUBTI 3BUJOH  w ,JCBOB &MBTUJDTFBSDI .Z42- IUUQ UDQ UDQ EBUBCBTFNPWJFMFOT VTFSNPWJFMFOTQBTT -PHTUBTI .PWJF -PHTUBTI 3BUJOH )UUQ ,JCBOB
  9. γφϦΦ࣮ߦ؀ڥͷىಈͱఀࢭ w ίϯςφΛ࡞੒࣮ͯ͠ߦ w EPDLFSDPNQPTFVQE w ίϯςφͷҰཡΛදࣔ w EPDLFSDPNQPTFQT w

    αʔϏεͷϩάΛग़ྗ w EPDLFSDPNQPTFMPHT w ίϯςφΛఀࢭͯ͠࡟আ w EPDLFSDPNQPTFEPXO ˞ࢀߟɿIUUQTEPDTEPDLFSDPNDPNQPTFSFGFSFODF
  10. σʔληοτ

  11. %BUBTFUT w .PWJF-FOT w IUUQTHSPVQMFOTPSHEBUBTFUTNPWJFMFOT

  12. %BUBNPEFMT NPWJFT  NPWJF*E  UJUMF  HFOSFT SBUJOHT 

    VTFS*E  NPWJF*E  SBUJOH  UJNFTUBNQ UBHT  VTFS*E  NPWJF*E  UBH  UJNFTUBNQ  
  13. NPWJFTUBCMF NPWJF*E UJUMF HFOSFT  5PZ4UPSZ  "EWFOUVSFc"OJNBUJPOc$IJMESFOc$PNFEZc'BOUBTZ  +VNBOKJ

     "EWFOUVSFc$IJMESFOc'BOUBTZ  (SVNQJFS0ME.FO  $PNFEZc3PNBODF
  14. UBHTUBCMF VTFS*E NPWJF*E 5BH UJNFTUBNQ   TBOESBCPSJOHCVMMPDL  

     EFOUJTU    $BNCPEJB 
  15. SBUJOHTUBCMF VTFS*E NPWJF*E SBUJOH UJNFTUBNQ     

          
  16. *OEFYJOH .PWJF-FOT %BUBCBTF .PWJF-FOT *OEJDFT 4&-&$5 *OEFYJOH *OQVUEBUB 0VUQVUEBUB 1SFQSPDFTTJOH

  17. ݕࡧγφϦΦ

  18. ϜʔϏʔશจݕࡧ w ϜʔϏʔͷλΠτϧɺδϟϯϧ໊ɺλά໊Λର৅ʹશจݕࡧΛ࣮ݱ͢Δɻ w ݕࡧ݁Ռ͸ॏෳ͠ͳ͍ϜʔϏʔ୯ҐͰฦ٫͢Δɻ w ݕࡧ݁ՌͷϥϯΩϯά͸ɺείΞϦϯάॱɺٴͼλΠτϧͷ"4$**DPEF ॱ͕ରԠՄೳͳ͜ͱɻ

  19. *."(& 4UBS8BST *."(& *."(& *."(&

  20. δϟϯϧφϏήʔγϣϯ w ݕࡧ݁ՌΛ΋ͱʹδϟϯϧφϏήʔγϣϯΛ࣮ݱ͢Δɻ w ϜʔϏʔશจݕࡧͷݕࡧ৚݅ΛࢦఆՄೳͳ͜ͱɻ w ݕࡧ݁Ռ͸δϟϯϧ໊Λݕࡧ݁Ռͷଟ͍ॱʹฦ٫ɻ w ֤δϟϯϧຖʹݕࡧ݁Ռ਺Λฦ٫͢Δɻ

  21. 3FMBUFE(FOSFT "EWFOUVSF "OJNBUJPO $IJMESFO`T $PNFEZ "DUJPO $SJNF   

             
  22. ϜʔϏʔ၆ᛌݕࡧ w ϜʔϏʔશจݕࡧݕࡧͷݕࡧ݁ՌΛδϟϯϧຖʹදࣔ͢Δɻ w ϜʔϏʔશจݕࡧͷݕࡧ৚݅ΛࢦఆՄೳͳ͜ͱɻ w δϟϯϧ಺ͷϜʔϏʔݕࡧ݁Ռ͸είΞϦϯάॱɻ

  23. *."(& 4UBS8BST *."(& *."(& 'BOUBTZ $PNFEZ

  24. ύʔιφϥΠζυݕࡧ w ύʔιφϥΠζ͞ΕͨϜʔϏʔݕࡧΛ࣮ݱ͢Δɻ w ϜʔϏʔશจݕࡧͷݕࡧ৚݅ΛࢦఆՄೳͳ͜ͱɻ w ݕࡧΩʔϫʔυͷϚον౓ʹʹՃ͑ɺݕࡧର৅Ϣʔβʔͷᅂ޷ʹ͍ۙ݁Ռ ΄Ͳ্ҐʹදࣔͰ͖Δ͜ͱɻ w ͜͜Ͱ͸ɺݕࡧର৅ϢʔβʔͷߴධՁʢελʔҎ্ʣϜʔϏʔ܈ͷಛ௃

    Λද͢δϟϯϧϕετ̏ΛͦͷϢʔβʔͷᅂ޷ʢ޷͖ͳδϟϯϧʣΛද͢ ͱఆٛ͢Δɻ
  25. *."(& 4UBS8BST *."(& *."(& *."(& *."(& 4UBS8BST *."(& *."(& *."(&

    6TFS" MJLF"OJNBUJPO$IJMESFO`T 6TFS# MJLF$PNFEZ"EWFOUVSF 4BNFLFZXPSET
  26. ΠϯσοΫεઃܭ

  27. ओͳΠϯσοΫε w ϜʔϏʔΠϯσοΫεʢNBTUFSNPWJFNPWJFTʣ w ϜʔϏʔධՁཤྺΠϯσοΫεʢFWFOUSBUJOH\ZZZZ^SBUJOHTʣ

  28. ϜʔϏʔΠϯσοΫε w NBTUFSNPWJFNPWJFT NPWJF  w ϜʔϏʔશจݕࡧ༻ w جຊతʹ͸αΠτӡӦऀ͕ͦͷσʔλΛϝϯςφϯε͢Δ͍ΘΏΔϚελʔ ܥͷσʔλͱ૝ఆɻ

    w σʔλྔɺߋ৽ස౓͸૝ఆ͠΍͍͢ɻ
  29. ઃܭͷϙΠϯτ w ΠϯσοΫε໊͸ϧʔϧ͕ద༻͠΍͍͢Α͏ʹύλʔϯԽ͢Δ w ݕࡧ༻ʹΤΠϦΞεΛఆٛ͢Δ w جຊతʹ͸̍ͭͷϦιʔεରͯ̍ͭ͠ͷΠϯσοΫεͰઃܭ w σʔλྔ͕ଟ͘ͳΔͱ༧૝͞ΕΔ৔߹͸ɺ͋Β͔͡Ίγϟʔυ਺Λ૿΍͢ w

    ΠϯσοΫεΛෳ਺ʹ෼͚Δ৔߹͸ɺӡ༻ͷ͠΍͢͞Λߟྀ
  30. ϜʔϏʔධՁཤྺΠϯσοΫε w FWFOUSBUJOH\ZZZZ^SBUJOHT SBUJOH  w Ϣʔβʔᅂ޷෼ੳ༻ w ҰൠϢʔβʔͷΞΫγϣϯʹΑͬͯ஝ੵ͞ΕΔ͍ΘΏΔΠϕϯτܥͷσʔ λͱ૝ఆɻ

    w σʔλྔ΋ଟ͘ɺߋ৽ස౓΋ߴ͍ͱ૝ఆ͞ΕΔ͕ɺͦͷྔ͸૝ఆͮ͠Β͘ ੍ޚ΋ͮ͠Β͍ɻ
  31. ઃܭͷϙΠϯτ w ΠϯσοΫε໊͸ϧʔϧ͕ద༻͠΍͍͢Α͏ʹύλʔϯԽ͢Δ w ݕࡧ༻ʹΤΠϦΞεΛఆٛ͢Δ w جຊతʹ͸೔෇Λ࢖ͬͯෳ਺ͷΠϯσοΫεͰઃܭ w ೥ผPS݄ผPS೔ผ

  32. υΩϡϝϯτઃܭ

  33. \ HFOSFT< %SBNB >  NPWJF@JE  UJUMF2VJ[4IPX  

     UBHT< 3BMQI'JFOOFT > ^ ϜʔϏʔυΩϡϝϯτ w υΩϡϝϯτʹϜʔϏʔʹͳΔΑ͏ʹઃܭɻ w %PDVNFOU*El\NPWJF@JE^z w ϜʔϏʔ͸ɺෳ਺ͷϜʔϏʔʹॴଐ͢Δɻ w ϜʔϏʔ͸ɺෳ਺ͷμά͕෇༩͞Ε͍ͯΔɻ
  34. ઃܭͷϙΠϯτ w ϑΟʔϧυ໊͸ϧʔϧΛద༻͠΍͍͢Α͏ʹ໋໊ن໿Λ༻ҙ w ϑϥάܥͷϑΟʔϧυ͸Θ͔Γ΍͍͢ϑΟʔϧυ໊ʹ͢Δɻ w ϑϥάܥͷϑΟʔϧυͷ஋͸ҙຯΘ͔Δ஋ʹม׵͢Δ

  35. \ VTFS@JE  HFOSFT< $PNFEZ  %SBNB  3PNBODF >

     NPWJF@JE  SBUJOH  UJNFTUBNQ ^ ϜʔϏʔධՁཤྺυΩϡϝϯτ w υΩϡϝϯτʹධՁཤྺʹͳΔΑ͏ʹઃܭɻ w %PDVNFOU*El\VTFS@JE^\NPWJF@JE^ \UJNFTUBNQ^z w ̍ධՁཤྺ͸ɺϜʔϏʔͱؔ࿈͢Δɻ w ̍ධՁཤྺʹରͯ̍͠ධՁ w ධՁ͸ʙ
  36. ΞφϥΠβʔઃܭ

  37. w ࠓճ͸σϑΥϧτͷ··Ͱ΋ཁ݅ΛຬͨͤΔͷͰઃܭ͠ͳ͍ɻ w ςΩετϑΟʔϧυͷΞφϥΠβʔ͸4UBOEBSE͕࢖༻͞ΕΔɻ w 4UBOEBSE"OBMZ[FS w IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDISFGFSFODF DVSSFOUBOBMZTJTTUBOEBSEBOBMZ[FSIUNM

  38. 4UBOEBSE"OBMZ[FS 1045@BOBMZ[F \ BOBMZ[FSTUBOEBSE  lUFYU*/PX1SPOPVODF:PV$IVDLBOE-BSSZ   ^ <J

    OPX QSPOPVODF ZPV DIVDL BOE -BSSZ > ˣˣˣˣˣ
  39. ઃܭͷϙΠϯτ w ݴޠผʹಉ͡༻్ͷΞφϥΠβʔΛఆٛ͢Δ৔߹͸໊લ͕ಉ͡ʹͳΔΑ͏ ʹઃܭ͢ΔʢϚοϐϯάఆٛΛݴޠڞ௨ʹ͢ΔͨΊʣ w ΠϯσοΫεଆͷΞφϥΠβʔΛઃܭ͠ɺඞཁʹԠͯ͡αʔνଆͷΞφϥ ΠβʔΛఆٛ͢Δ w γϊχϜࣙॻΛద༻͢Δεςʔδ͸ɺΠϯσοΫεଆ·ͨ͸αʔνଆͷ͍ ͣΕ͔Ͱઃܭ͢Δ

  40. Ϛοϐϯάઃܭ

  41. w .PWJF*OEFY w ಛʹͳ͠ɻEFGBVMUͷ··ɻ w 3BUJOH*OEFY w 3BUJOHTBSFNBEFPOBTUBSTDBMF XJUIIBMGTUBSJODSFNFOUT TUBSTTUBST

     w 5JNFTUBNQTSFQSFTFOUTFDPOETTJODFNJEOJHIU$PPSEJOBUFE6OJWFSTBM5JNF 65$  PG+BOVBSZ  w ˞ࢀߟ'JFMEEBUBUZQFT  ɿ w IUUQTXXXFMBTUJDDPHVJEFFOFMBTUJDTFBSDISFGFSFODFDVSSFOUNBQQJOH UZQFTIUNM
  42. .BQQJOHͷ֬ೝ w .PWJF*OEFY w (&5NPWJF@NBQQJOH w 3BUJOH*OEFY w (&5SBUJOH@NBQQJOH

  43. ઃܭͷϙΠϯτ w ΠϯσοΫεڞ௨ͷఆٛ͸ΠϯσοΫεςϯϓϨʔτͰಈతʹఆٛ͢Δ w ΠϯσοΫεݻ༗ͷఆٛ͸੩తʹతఆٛ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