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

どうしたらログがちゃんと管理できるのか?

kosako
May 25, 2017

 どうしたらログがちゃんと管理できるのか?

potatotips#40

kosako

May 25, 2017
Tweet

More Decks by kosako

Other Decks in Programming

Transcript

  1. Ͳ͏ͨ͠Βϩά͕ͪΌΜͱ؅ཧͰ͖Δͷ͔

    "LJIJSP,PTBLP

    View Slide

  2. ࠃ಺/P໊࣮άϧϝαʔϏε3FUUZͷӡӦ
    ೥ઃཱ
    XFCͱΞϓϦͰαʔϏεల։
    γϯάϧυϝΠϯ
    εϚϗϑΝʔετ
    ݄ؒສ66

    View Slide

  3. ɾ"LJIJSP,PTBLP
    ɾ3FUUZͰΤϯδχΞͯ͠·͢
    ɾ΍ͬͯΔ͜ͱ
    J04
    1)1
    "84
    About Me

    View Slide

  4. ΞϓϦͷ෼ੳ

    View Slide

  5. w HPPHMF"OBMZTJT
    w %#
    w ࣗલͰϩάऩू 5% #JH2VFSZ

    ΞϓϦͷ෼ੳ

    View Slide

  6. w HPPHMF"OBMZTJT
    w %#
    w ࣗલͰϩάऩू 5% #JH2VFSZ

    ΞϓϦͷ෼ੳ

    View Slide

  7. Α͋͘Δύλʔϯ

    View Slide

  8. ࢼ͠ʹ͋ͷπʔϧ΋ೖΕ͍ͨ
    Α͋͘Δύλʔϯ

    View Slide

  9. ࢪࡦͰ͜͜ͷ਺ࣈΛ֬ೝ͍ͨ͠
    Α͋͘Δύλʔϯ

    View Slide

  10. ͪΐͬͱͷؒ͜͜ͷ਺ࣈΈ͍ͨ
    Α͋͘Δύλʔϯ

    View Slide

  11. λοϓ਺ଟ͍ϘλϯͲͬͪ
    Α͋͘Δύλʔϯ
    ߪೖ
    ߪೖ

    View Slide

  12. w ౎౓ຒΊࠐ·ΕΔϩά
    w औΓ͍ͨσʔλ͕औΕͳ͍
    w ॏͰऔΒΕΔϩά
    w ޙ࢝຤͕͞Εʹ͍͘
    w ੜ͖ͯΔ͔Ͳ͏͔Θ͔Βͳ͍
    Α͋͘Δύλʔϯ

    View Slide

  13. Ξϓϩʔν

    View Slide

  14. w ϩάΛૹΔϝιουΛҰͭʹ
    w ίʔϧ͢Δ৔ॴͰ͸Ͳ͜ʹૹΔ͔
    ࢦఆ͠ͳ͍
    w ૹ৴ઃఆϑΝΠϧΛ༻ҙͯ͠ू໿
    w ͢΂ͯͷ৔ॴͰίʔϧ͢Δ
    Ξϓϩʔν

    View Slide

  15. ૹ৴ϝιου
    ૹ৴ઌ
    Ϙλϯλοϓ
    TFOE-PH
    ઃఆϑΝΠϧΛݟͯඞཁͳ৔ॴʹૹ৴
    FYHPPHMF"OBMZUJDT ࣗࣾϩά"1*
    ઃఆϑΝΠϧ
    MPHKTPO

    View Slide

  16. {
    "sample1" : {
    "description" : "Aը໘ͰϘλϯΛԡͨ͠",
    "type" : "action / pv",
    "Retty" : {
    "event" : "12345",
    "sourceId" : "12345",
    },
    "TreasureData" : {
    "event" : "sample",
    "parameters" : {"restaurant_id" : “123456"}
    },
    },
    “logid001” : {
    "description" : "Bը໘ͰϘλϯΛԡͨ͠",
    "type" : "action",
    "TreasureData" : {
    "event" : "sample2",
    },
    }
    }
    log.json

    View Slide

  17. [Analysis trackKey:@"logid001"
    parameters:@{@"param" : @{"param01" : @10}}
    options:nil];
    sendLog

    View Slide

  18. • ରԠ͸JSONϑΝΠϧΛ༻ҙͯ͠DL
    • ରԠද͕͋ΔͷͰɺϩάΛૹΓͨ͘ͳͬͨΒJSONΛߋ
    ৽͢Ε͹OK
    • Ͳͷϩά͕ͲͷҙຯͰૹ৴͞Ε͔͕ͨΘ͔Γ΍͍͢
    • ϩάಉ࢜ͷରԠද͕ͦ͜ʹ͋Δ
    • ࢭΊͨ͘ͳͬͨΒɺઃఆϑΝΠϧΛมߋ͢Δ͚ͩ
    Point

    View Slide

  19. • iPhone/Android/WEBͰϑΥʔϚοτΛ౷Ұ
    • ؅ཧը໘Λ࡞੒ͯ͠ϩάIDΛൃߦɺҰݩ؅ཧ
    • ϩάͷmigrationɺܧଓͨ͠ϩά৘ใͷҡ࣋
    ࠓޙͷ໺๬

    View Slide

  20. ऴΘΓ
    ͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ

    View Slide