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
Fluentd を導入した話
Search
Kazuma Muramatsu
December 25, 2012
3
450
Fluentd を導入した話
社内向け
Kazuma Muramatsu
December 25, 2012
Tweet
Share
More Decks by Kazuma Muramatsu
See All by Kazuma Muramatsu
SSLサーバ証明書のお話
m_zuma
0
290
Natto
m_zuma
2
410
ランチョンミートの話をしよう
m_zuma
4
1.9k
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.1k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Being A Developer After 40
akosma
87
590k
Fireside Chat
paigeccino
34
3.1k
A Philosophy of Restraint
colly
203
16k
Building Your Own Lightsaber
phodgson
103
6.1k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
28
4.4k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Transcript
Fluentd を 導入した話
@m_zuma Kazuma Hinami work at OCC Co., Ltd. service engineer
γεςϜαʔόͰ ग़ྗ͞Ε͍ͯΔϩά
ීஈ͋·Γͬͯͳ͍
ීஈ͋·Γͬͯͳ͍ Τϥʔ࣌ʹTTIͰHSFQ͢Δ͘Β͍
׆༻͍ͨ͠
ϩάʹు͔ΕͯΔ ใ͔ΒαʔϏε վળϢʔβ͕ ΉͷΛݟग़͢
ग़ྗ͞Ε͍ͯΔϩ άΛλʔϛφϧͰ ͳ͘ϒϥβ͔ Β֬ೝͰ͖ΔΑ͏ ʹ͢Δ
✔ Path ✔ Traffic ✔ Agent List ✔ Response Time
etc...
log analysis data mining
͔͠͠
Apache nginx syslog etc...
Apache nginx syslog etc... format ga tigau!
? Apache nginx syslog
Fluentd Apache nginx syslog ?
Fluentd ?
Fluentd is a lightweight and flexible log collector.
None
made of
Pluggable
None
$ gem list -r “fluent-plugin-” | wc -l 86
parse JSON
JSON “127.0.0.1 - [2012-11-15 9:00:00 -0900] 200 "GET /index.php HTTP...”
access_log.message { “ip”:“127.0.0.1”, “date”:“[2012-11-15 9:00:00 -0900]”, ... } JSON “127.0.0.1
- [2012-11-15 9:00:00 -0900] 200 "GET /index.php HTTP...”
“127.0.0.1 - [2012-11-15 9:00:00 -0900] 200 "GET /index.php HTTP...” JSON
format /^(?<ip>[^ ]+) (?<date>[^ ]+) (?<status>[ ^]+) ... / access_log.message { “ip”:“127.0.0.1”, “date”:“[2012-11-15 9:00:00 -0900]”, ... }
Fluentd Apache nginx syslog ?
Fluentd JSON Apache nginx syslog
Apache Fluentd nginx syslog JSON
JSON
JSON
JSON stdout file plugin
JSON stdout file plugin
JSON stdout file plugin stdout file plugin
JSON stdout file plugin stdout file plugin
Usage ?
App Server Fluentd App Server DB Server DB Graph log
parse, count etc... output forward
My team
Fluentd ↓sshfs App Server file GrowthForecast datacounter copy forest
Fluentd ↓sshfs App Server file GrowthForecast 1Server copy datacounter forest
とある事情で
Demo
ϩάʹు͔ΕͯΔ ใ͔ΒαʔϏε վળϢʔβ͕ ΉͷΛݟग़͢
ग़ྗ͞Ε͍ͯΔϩ άΛλʔϛφϧͰ ͳ͘ϒϥβ͔ Β֬ೝ͢Δ
Future...
✔ ;BCCJYͷಋೖ ✔ 8FC͔ΒΤϥʔՕॴΛղੳ
✔ ;BCCJYͷಋೖ ✔ 8FC͔ΒΤϥʔՕॴΛղੳ インストールはした!
None
#3E4146 #ACA264 #A63180 #322117 このスライドで 使ってるカラー
End.