Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
やらかした話 - ログ集約編
Search
uraura
January 21, 2021
Technology
0
710
やらかした話 - ログ集約編
AWS Startup Tech Meetup Online#1
uraura
January 21, 2021
Tweet
Share
Other Decks in Technology
See All in Technology
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
230
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
130
LINEヤフーにおけるPrerender技術の導入とその効果
narirou
1
420
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
320
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
430
TypeScriptの次なる大進化なるか!? 条件型を返り値とする関数の型推論
uhyo
2
1.8k
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
480
SDNという名のデータプレーンプログラミングの歴史
ebiken
PRO
2
190
アプリエンジニアのためのGraphQL入門.pdf
spycwolf
0
120
生成AIが変えるデータ分析の全体像
ishikawa_satoru
0
200
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1366
200k
Designing for Performance
lara
604
68k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Thoughts on Productivity
jonyablonski
67
4.3k
Facilitating Awesome Meetings
lara
50
6.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
730
For a Future-Friendly Web
brad_frost
175
9.4k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Six Lessons from altMBA
skipperchong
27
3.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
430
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
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