Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
やらかした話 - ログ集約編
Search
uraura
January 21, 2021
Technology
780
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
やらかした話 - ログ集約編
AWS Startup Tech Meetup Online#1
uraura
January 21, 2021
Other Decks in Technology
See All in Technology
Kiro 入門 (1 つのエージェントを、どの画面からでも) | 目指せ Kiro マスター 01
inariku
PRO
6
1.3k
並列度を下げたら速くなった — go build の重複コンパイルを実測で見る
tomoaki25
2
980
公共分野での生成AI活用
toru_kubota
1
300
AI時代に求められる優秀なTechLeadの振る舞い
pospome
11
15k
お客様の「やりたい」の先を見通す合意形成プロセス ~裏にある課題と不安を解きほぐすコツ~
yukakoseki
0
130
バックオフィスに染み出すTypeScript ── clasp で安全に仕組みを作る
nealle
1
200
evcc & Home Assistant
naltatis
0
360
「AIチャットからもできないの?」と言われたら ~業務アプリをMCP対応するときの認証・認可の勘所
oidfj
0
230
[General] 개발자로 해외 기업에서 일하기
skydoves
1
310
2026 Apache Flink Community Checkpoint
rmetzger
0
200
Content Mapper APIの応用例~CSS Modules、言語ファイル~
uhyo
2
630
`go get`したらELFが降ってきた件
taiyow
0
190
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
470
Producing Creativity
orderedlist
PRO
348
41k
The agentic SEO stack - context over prompts
schlessera
0
1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
How to make the Groovebox
asonas
2
2.5k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
880
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Crafting Experiences
bethany
1
430
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
Joys of Absence: A Defence of Solitary Play
codingconduct
1
570
Transcript
Β͔ͨ͠ - ϩάूฤ Tomohiro Urakawa @ AWS Startup Tech Meetup
Online#1
@corn3rl0ve • ΫϥελʔגࣜձࣾͰαʔόʔαΠυΤϯδχΞΛ͍ͬͯ·͢ • golangͰΞϓϦΛॻ͍ͨΓɼTerraformͰAWSʑͷϦιʔεཧͯͨ͠Γɼ ࠷ۙϞχλϦϯά·ΘΓʹڵຯ͕͋Γ·͢
cluster ͱ • PC/VR/εϚϗ͔ΒࢀՃͰ͖Δόʔνϟϧ SNS • ษڧձϥΠϒͳͲͷΠϕϯτ͕Ͱ͖ͨ Γɼࣗ࡞ήʔϜΛ࡞ͬͯެ։Ͱ͖ͨΓ • https://resources.awscloud.com/aws-
summit-online-japan-2020-on-demand- industry-4-10523/cus-64-aws-summit- online-2020-cluster-inc ͰͥΜͿ͠ΌΓ· ͨ͠
clusterͷαʔόʔαΠυ֓ཁ ग़ల: https://resources.awscloud.com/aws-summit-online-japan-2020-on-demand-industry-3-12034/cus-64-aws-summit-online-2020-cluster-inc
clusterͷαʔόʔαΠυ֓ཁ • ECS • HTTP API Server • ଓதͷϢʔβʔΛཧ͢ΔͨΊͷdaemonతͳαʔϏε •
ఆ࣌ͷόονδϣϒ (scheduled task) • EC2 • ۭؒͷମݧΛఏڙ͢ΔͨΊͷMQTTαʔόʔ • ۭؒͰඞཁͳใΛੜʗૹड৴͢ΔͨΊͷಠࣗαʔϏε • Lambda
clusterͷαʔόʔαΠυ֓ཁ • ECS • HTTP API Server • ଓதͷϢʔβʔΛཧ͢ΔͨΊͷdaemonతͳαʔϏε •
ఆ࣌ͷόονδϣϒ (scheduled task) • EC2 • roomͷମݧΛఏڙ͢ΔͨΊͷMQTTαʔόʔ • roomͰඞཁͳใΛੜʗૹड৴͢ΔͨΊͷಠࣗαʔϏε • Lambda CloudWatch Logs
clusterͷαʔόʔαΠυ֓ཁ • ECS • HTTP API Server • ଓதͷϢʔβʔΛཧ͢ΔͨΊͷdaemonతͳαʔϏε •
ఆ࣌ͷόονδϣϒ (scheduled task) • EC2 • roomͷମݧΛఏڙ͢ΔͨΊͷMQTTαʔόʔ • roomͰඞཁͳใΛੜʗૹड৴͢ΔͨΊͷಠࣗαʔϏε • Lambda CloudWatch Logs ΄΅ಉ͡ߏͰEFWTUHQSE ڥ "84ΞΧϯτ ଘࡏ
αʔόʔͷϩάΛؾܰʹݟΕΔͱௐࠪ ͕ḿͬͯศར͚ͩͲɽɽɽ
CloudWatch Logs͍͠ • ·ͣAWSͷϢʔβʔΞΧϯτ͕ඞཁ • ڥ͝ͱʹΞΧϯτผͳͷͰswitch-role͕ඞཁ • log-group, log-stream ͱɽɽɽ?
• f i lter͕͍͠ (׳Ε͕ඞཁ • Insights͕͍͠ (׳Ε͕ඞཁ
ϩάΛݟ͍͚ͨͩͳͷʹ ߟ͑Δ͜ͱ͕ଟ͗͢Δ
Elasticsearch ServiceʹೖΕͨ • Kibana͕ศར • dev͔Β͡Ίͯstg/prdల։ CloudWatch Logs Elasticsearch Service
Subscription f i lter
҆͗ͨ͢ • ར༻͢Δͷ99%prd༻ɼ͕ى͜Δͷ99%dev༻ • prd༻Ҏ֎ීஈ͋·Γར༻͠ͳ͍͕ɼ͕ى͖ͨΒରԠ͕ඞཁ • ઃఆมߋ͕͋Εશ෦ʹద༻͠ͳ͍ͱ͍͚ͳ͍ • ܽଛͨ͠ͱ͖ͷิ͕͍͠ •
ϩά͕ݟ͔ͭΒͳ͍? ͱࢥͬͨΒผڥͷKibanaΛݟ͍ͯͨ
Elasticsearch ServiceΛ1ͭʹ͠Α͏
1ͭͷElasticsearch Serviceʹूͨ͠ • ్தʹS3ΛڬΉ͜ͱͰηʔϒϙΠϯτ͕Ͱ͖ͨ • Lambdaࣦഊ࣌ʹϦτϥΠͯ͘͠ΕΔͷͰ΄΅ख์͠ʹͳͬͨ dev Elasticsearch Service Kinesis
Streams Kinesis Firehose S3 Output Lambda Event Noti f i cation Bulk API stg prd Subscription f i lter
ΊͰͨ͠
ͱ͍͔ͳ͔ͬͨ
͠Βͨͬͨ͋͘Δɽɽɽ • Domain status͕ Upgrade processing ͷ··ԿͰ͖ͳ͍ঢ়ଶʹ • • clusterͷstatusਅͬ
(※ը૾ࡱΓΕ) • Lambdaશ෦ࣦഊͯ͠ϦτϥΠ͍ͯͨ͠ͷͰɼݺग़ճʗॲཧ࣌ؒʗ ϩάग़ྗྔ͕͍͢͜͝ͱʹ • →݁ہ͜ͷDomainআ͢Δ͜ͱʹͳͬͯ͠·͍·ͨ͠
ഊҼ • Elasticsearch ServiceͷෛՙΛແବʹ૿େ͍ͤͯͨ͞ • ରͷlog-groupʹsubscription f i lterΛઃఆ͢Δ͚ͩɼͱ͍͏ঢ়ଶͩͬͨͷ Ͱɼ͋ΒΏΔlog-groupʹઃఆΛ͍Εͯ͠·ͬͨ
• ͋·ΓॏཁͰͳ͍ (ௐࠪʹར༻͠ʹ͍͘) ϩάେྔʹElasticsearch Serviceʹอଘ͞ΕΔ͜ͱʹͳͬͯ͠·ͬͨ • ϦτϥΠͷཞ༻ • ޭ͢ΔݟࠐΈ͕ͳ͍ͷʹϦτϥΠ͠ଓ͚Δঢ়ଶͩͬͨ
·ͱΊ • αʔϏεͷಛੑʗѻ͏σʔλʹ͍͋ͬͯΔ͔ • CloudWatch LogsΑΓElasticsearch Service͕ྑ͍ɼͱ͍͏Ͱͳ ͍ • উखʹϦτϥΠͯ͘͠ΕͯศརʙɼͰ͍͚ͳ͍
• త͕ζϨͯ͠·ͬͯͳ͍͔ • ʮௐࠪΛΓ͍ͨ͘͢͠ʯˠʮू͍ͨ͠ʯʹมΘͬͯ͠·ͬͯ ͍ͨ
͓ΘΓ
https://www.wantedly.com/projects/562252