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

今更ながらElasticSearch + Kibana導入で ハマってしまったこと

今更ながらElasticSearch + Kibana導入で ハマってしまったこと

TakashiAsanuma

March 04, 2016
Tweet

More Decks by TakashiAsanuma

Other Decks in Technology

Transcript

  1. 1
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ࠓߋͳ͕Β
    &MBTUJD4FBSDI
    ,JCBOBಋೖͰ
    ϋϚͬͯ͠·ͬͨ͜ͱ
    ೥݄೔
    גࣜձࣾ͛͡Μ
    ઙপɹܟ

    View full-size slide

  2. 2
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ࠓߋͰ͕͢,JCBOBΛ࢖͍͸͡Ίͯɺ
    ৭ʑͳϩάΛνΣοΫͰ͖ΔΑ͏ʹͳΓ·ͨ͠ɻ

    Ͱ΋ɺಋೖ࣌ʹٕज़తʹϋϚͬͨ͜ͱ͕
    ͋ͬͨͷͰɺ·ͱΊ͓ͯ఻͑͠·͢ɻ

    View full-size slide

  3. 3
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ΞδΣϯμ
    εΩʔϚϨεͰ΋ߟྀ͢Δ͜ͱ
    +7.ઃఆ
    &MBTUJD4FBSDIͷUJNFPVU
    &MBTUJD4FBSDIͷΫϥελ
    ΠϯσοΫεͷվഇ
    &MBTUJDTFBSDIͷ࠶ىಈ





    View full-size slide

  4. 4
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ݱࡏͷར༻؀ڥ
      'MVFOUE
      'MVFOUE1MVHJOT
    qVFOUUBJM
    qVFOUQMVHJOUBJMFY
    qVFOUQMVHJOFMBTUJDTFBSDI
      &MBTUJDTFBSDI
      ,JCBOB
    &MBTUJDTFBSDIʹ͸MPHTUBTIGPSNBUͰ
    σʔλΛૹΔͷ͕ศརɻ೔ผͷJOEFYʹͯ͘͠
    ΕΔ

    View full-size slide

  5. 5
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ݱࡏऔಘ͍ͯ͠Δϩά
      "QBDIF
      3BJMT
      4PMS2VFSZ
      /P*NBHF3FRVFTUʢը૾ͳ͠Ҋ݅ʣ

    ϩάऔಘ͍ͯ͠Δαʔό୆਺͸୆

    4UBUVT$PEFผ (PPHMFCPUͷճ༡
    4PMSͷϨεϙϯε ը૾ͳ͠Ҋ݅ͷ૿ݮ
    ͳͲͳͲΛ,JCBOB্ͰՄࢹԽ͍ͯ͠·͢ɻ

    View full-size slide

  6. 6
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ϋϚͬͨ͜ͱ

    View full-size slide

  7. 7
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    εΩʔϚϨεͰ΋ߟྀ͢Δ͜ͱ
      ूܭΛߟྀͯ͠ඞཁͳ߲໨ͷTUSJOHʹ
    OPU@BOBMZ[FΛઃఆ͢Δ
      SFTQPOTF@UJNFͳͲ਺஋ܭࢉ͍ͨ͠΋ͷ
    ͸ɺJOUFHFSΛࢦఆͯ͠σʔλΛૹΔ
      &MBTUJDTFSDIʹUFNQMBUFΛొ࿥͓ͯ͘͠
      ͜ΕಡΜͰ͓͚͹Α͔ͬͨ
    IUUQLPCJUPTBOIBUFOBCMPHDPNFOUSZ
    Կ΋ࢦఆ͠ͳ͍ͱɺσϑΥϧτ͸͢΂ͯ4USJOHͷ
    BOBMZ[FͱͳΔɻ୯ޠͰ෼͔ͪॻ͖͞Εͨঢ়ଶʹͳΔ
    ͷͰɺ"HFOUͳͲάϧʔϓԽ͍ͨ͠ͱ͖ʹͰ͖ͳ͍ɻ
    ࠷ॳɺԿ౓΋ΠϯσοΫεΛ࡞Γͳ͓ͨ͠ɻ

    View full-size slide

  8. 8
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    +7.ઃఆ
      &4@)&"1@4*;&Λઃఆ͢Δ
      FUDJOJUEFMBTUJDTFBSDIPSFUD
    TZTDPOpHFMBTUJDTFBSDIͷதʹઃఆ͢
    ΔΒ͍͠
      ͻͱ·ͣ(ʹ༷ͯ͠ࢠݟத
    ϩάసૹΛ૿΍͍ͯͬͨ͠ΒKBWBIFBQTJ[F
    FSSPSൃੜɻ͢Έ·ͤΜɺσϑΥͷ··Ͱͨ͠ɻ

    View full-size slide

  9. 9
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    &MBTUJD4FBSDIͷUJNFPVU
    ͓ͦΒ͘
      ॲཧΩϡʔ͕ᮢ஋Λ௒͑ͨʁ
      $POUFOUMFOHUI΋ո͍͠ʁ
      #VML"1*ลΓΛௐ΂ͯΈΔ
    ߋʹϩάసૹʢେྔͷ4PMS2VFSZʣΛ૿΍͍ͯͬ͠
    ͨΒqVFOUEଆͰେྔͷUJNFPVUൃੜɻ·ͩղফͰ
    ͖͍ͯͳ͍ɻ

    View full-size slide

  10. 10
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    &MBTUJD4FBSDIͷΫϥελ
    ࠓޙͷͨΊʹ
      4IBSE 3FQMJDBͳͲΫϥελߏ੒
      Ϋϥελߏ੒ͰͷઃఆมߋɾϦΧόϦӡ༻
    ͳͲɺαʔϏεͰར༻ͨ͠৔߹ͷ͜ͱΛ౿·͑
    ͯӡ༻ϊ΢ϋ΢Λٵऩ͍ͨ͠
    ࠓ͸୆ͷΈͷӡ༻ͳͷͰɺσϑΥͷΫϥελઃఆΛ
    ม͑ͯϊʔυͷΈʹ͠·ͨ͠ɻσϑΥ͸ϨϓϦΧ༗
    Γʹͳ͍ͬͯΔɻ

    View full-size slide

  11. 11
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ΠϯσοΫεͷվഇ
    ͢Ͱʹ࡟আTIFMMΛ࡞͍ͬͯΔํͷΛࢀߟ
    IUUQTHJTUHJUIVCDPNCFIBTFFBFBBCGEDB
    σΟεΫ༰ྔͷݶք͸͋ΔͷͰɺ͍ͣΕݹ͍Πϯσο
    Ϋεͷ࡟আ͸ඞཁɻ

    "QBDIFBDDFTTMPH໿(೔
    3BJMT1SPEVDUJPOMPH໿(೔
    4PMS2VFSZMPH໿(೔

    View full-size slide

  12. 12
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    &MBTUJDTFBSDIͷ࠶ىಈ
      ̍ϊʔυͰϦΞϧλΠϜϩάͭΒ͍
      ԼखʹࢭΊΔͱૹ৴αʔόʹӨڹͷՄೳੑ΋
    &MBTUJDTFBSDIΛ࠶ىಈ͢Δͱɾɾɾ
    'MVFOUEΛઃఆ͍ͯ͠Δαʔό͔Β'MVFOUEͷ؂ࢹ
    Τϥʔ͕͍ͬͺ͍ग़Δɻ

    View full-size slide

  13. 13
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ΠϯσοΫεઃఆؔ࿈ͷૢ࡞
      ΠϯσοΫεҰཡ

    DVSMr9(&5MPDBMIPTU@DBUJOEJDFT W

      ΠϯσοΫεͷϚοϐϯάҰཡ

    DVSMr9(&5MPDBMIPTUMPH@NBQQJOH
    QSFUUZ

      ΠϯσοΫε࡟আ

    DVSMr9%&-&5&MPDBMIPTUMPH

      ϚοϐϯάςઃఆҰཡ

    DVSM9(&5MPDBMIPTU@UFNQMBUF QSFUUZ

      ϚοϐϯάςϯϓϨʔτొ࿥

    DVSM9165MPDBMIPTU@UFNQMBUFMPHEBUB!MPH
    @UFNQMBUFKTPO

      ϚοϐϯάςϯϓϨʔτ࡟আ

    DVSMr9%&-&5&MPDBMIPTU@UFNQMBUFMPH

    View full-size slide

  14. 14
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    ·ͱΊ
    ·ͩ·ֶͩश͠ͳ͍ͱ͍͚ͳͦ͏ͳ͜ͱ

      ࢖͍ํΛߟྀͨ͠εΩʔϚઃఆ
      େྔσʔλసૹʹ͓͚Δ#VMLઃఆ
      Ϋϥελߏ੒Λલఏͱͨ͠ઃܭ
      ΠϯσοΫεʹԠͨ͡αʔόϦιʔεઃܭ
    &MBTUJDTFBSDIษڧձͱ͔ͰΩϟονΞοϓ
    ͨ͠Γɺ!KPIUBOJ͞Μʹ࣭໰ͩʂ

    View full-size slide

  15. 15
    Copyright(C) 2006-2011 ZIGExN Co., Ltd. All Rights Reserved.
    OVER the DIMENSION
    Ҏ্ɺ
    ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ

    View full-size slide