SlideShare a Scribd company logo
Eduardo Silva
eduardo@treasuredata.com
@edsiper
Unifying Events & Logs
into the Cloud
October 06, 2015
StartechConf, Santiago
About Me
Eduardo Silva
●
Github & Twitter @edsiper
●
Personal Blog http://edsiper.linuxchile.cl
Treasure Data
●
Open Source Engineer
●
Fluentd / Fluent Bit http://github.com/fluent
Projects
●
Monkey HTTP Server http://monkey-project.com
●
Duda I/O http://duda.io
Logging
Logging Matters
Pros
●
Application status
●
Debugging
●
General information about anomalies: errors
●
Troubleshooting / Support
●
Local or Remote (network)
Logging Matters
From a business point of view
●
Input data Analytics→
●
User interaction / behaviors
●
Improvements
Assumptions
Logging Matters
Assumptions
●
I have enough disk space
●
I/O operations will not block
●
Log messages are human readable
●
My logging mechanism scale
Logging Matters
Assumptions
Basically, yeah.. it should work.
Concerns
Logging Matters
Concerns
●
Logs increase = data increase
●
Message format get more complex
●
Did the Kernel flush the buffers ? (sync(2))
●
Multi-thread application ?, locking ?
●
Multiple Applications = Multiple Logs
Logging Matters
Concerns
If Multiple Applications = Multiple logs
Multiple Hosts x Multiple Applications = ???
OK, so:
1. Logging matters
2. It's really beneficial
3. but...
It needs to
be done right.
Logging
Common sources & inputs
●
Application Logs
●
Apache
●
NginX
●
Syslog (-ng)
●
Custom applications / Languages
●
C, Ruby, Python, PHP, Perl, NodeJS, Java, etc.
In a galaxy
not so far away...
Unifying Events and Logs into the Cloud
How to parse/store
multiple data sources ?
note: performance matters!
Unifying Events and Logs into the Cloud
Fluentd is an open
source data collector
It let's you unify the data collection for
a better use and understanding of data.
before
after
Fluentd
Highlights
●
High Performance
●
Built-in Reliability
●
Structured Logs
●
Pluggable Architecture
●
More than 300 plugins! (input/filtering/output)
Fluentd
Architecture
Fluentd
Internals simplified
Fluentd
Input plugins
Fluentd
Output plugins
Fluentd
Buffer plugins
Fluentd
Buffer plugins
Unifying Events and Logs into the Cloud
M x N M + N→
Fluentd
Simple Forwarding
Fluentd
Simple Forwarding: configuration
# logs from a file # store logs to MongoDB
<source> <match backend.*>
type tail type mongo
path /var/log/httpd.log database fluent
format apache2 collection test
tag backend.apache </match>
</source>
# logs from client libraries
<source>
type forward
port 24224
</source>
Fluentd
Less Simple Forwarding
Fluentd
Lambda Architecture
Fluentd
# logs from a file # store logs to MongoDB
<source> <match *.*>
type tail type copy
path /var/log/httpd.log <store>
format apache2 type elasticsearch
tag backend.apache logstash_format true
</source> </store>
# logs from client libraries <store>
<source> type webhdfs
type forward host 192.x.y.z
port 24224 port 50070
</source> path /path/to/hdfs
</store>
</match>
Who uses Fluentd
in production ?
Unifying Events and Logs into the Cloud
Unifying Events and Logs into the Cloud
We collect
1M events per second !
Internet of Things
Internet of Things
Facts
●
IoT will grow to many billions of devices over the
next decade.
●
Now it's about device to device connectivity.
●
Different frameworks and protocols are emerging.
●
It needs Logging.
Internet of Things
Alliances
Vendors formed alliances to join forces and develop
generic software layers for their products:
Internet of Things
Solutions provided
Alliance Framework
→
→
IoT & Big Data
Analytics
IoT requires a generic solution to collect events and
data from different sources for further analysis.
Data can come from a specific framework, radio device,
sensor or other. How do we collect and unify data
properly ?
@fluentbit
Fluent Bit is an open source
data collector
It let's you collect data from IoT/Embedded
devices and transport It to third party
services.
Fluent Bit
Targets
●
Services
●
Sensors / Signals / Radios
●
Operating System information
●
Automotive / Telematics
Fluent Bit
Requirements
IoT and Embedded environment requires special handling,
specifically on performance and resource utilization:
●
Lightweight
●
Written in C Language
●
Customizable, pluggable architecture
●
Full integration with Fluentd
Fluent Bit
Integration
Fluent Bit
Direct Output
Containers
Unifying Events and Logs into the Cloud
Docker
Logging driver
●
Docker v1.6 released the concept of logging drivers
●
Route container output
●
Fluentd ?
Docker
Docker v1.8
Fluentd Logging driver!
Docker
Data Stream
Docker
Data Stream
Unifying Events and Logs into the Cloud
NodeJS
Fluent-Logger (NPM)
We Love Data!
Thank you!
●
http://fluentd.org
●
http://fluentbit.io
●
https://docs.docker.com/reference/logging/fluentd/
●
http://github.com/fluent/fluentd

More Related Content

PDF
IoT Data Connector Fluent Bit
PDF
PDF
Fluent-bit
PPTX
Hacking terminology
PPTX
What's new in PDF 2.0 regarding digital signatures
PPTX
InChI Resolver
PDF
Cloud Native Logging / Fluentd Summit Tokyo
PDF
Gobot Meets IoT : Using the Go Programming Language to Control The “Things” A...
IoT Data Connector Fluent Bit
Fluent-bit
Hacking terminology
What's new in PDF 2.0 regarding digital signatures
InChI Resolver
Cloud Native Logging / Fluentd Summit Tokyo
Gobot Meets IoT : Using the Go Programming Language to Control The “Things” A...

Viewers also liked (6)

PDF
Android HTTP Service
PDF
Logging for Containers
PDF
Containers and Logging
PDF
Duda I/O - Lightning Talk Google Summer of Code Summit 2014
PDF
Monkey Server
PDF
Log forwarding at Scale
Android HTTP Service
Logging for Containers
Containers and Logging
Duda I/O - Lightning Talk Google Summer of Code Summit 2014
Monkey Server
Log forwarding at Scale
Ad

Similar to Unifying Events and Logs into the Cloud (20)

PPTX
CSE3069 - FLUENTD real time analytics.pptx
PDF
Collect distributed application logging using fluentd (EFK stack)
PDF
Fluentd Overview, Now and Then
PPTX
Big Data Day LA 2016/ Big Data Track - Fluentd and Embulk: Collect More Data,...
PDF
Fluentd and Docker - running fluentd within a docker container
PDF
Fluentd 101
PDF
Fluentd Project Intro at Kubecon 2019 EU
PDF
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
PPTX
Unify logz with fluentd
PPTX
Flume & FluentD (ETL Comparison)
PPTX
Building a Unified Logging Layer with Fluentd, Elasticsearch and Kibana
PDF
Logging in Action: With Fluentd, Kubernetes and more 1st Edition Phil Wilkins
PDF
Fluentd and Docker - running fluentd within a docker container
PDF
Fluentd and Distributed Logging at Kubecon
PPTX
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
PDF
Fluentd Intro for OpenShift Commons Briefing
PDF
Fluentd introduction at ipros
PDF
Fluent Bit: Log Forwarding at Scale
PDF
The basics of fluentd
PDF
Distributed Logging Architecture in Container Era
CSE3069 - FLUENTD real time analytics.pptx
Collect distributed application logging using fluentd (EFK stack)
Fluentd Overview, Now and Then
Big Data Day LA 2016/ Big Data Track - Fluentd and Embulk: Collect More Data,...
Fluentd and Docker - running fluentd within a docker container
Fluentd 101
Fluentd Project Intro at Kubecon 2019 EU
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
Unify logz with fluentd
Flume & FluentD (ETL Comparison)
Building a Unified Logging Layer with Fluentd, Elasticsearch and Kibana
Logging in Action: With Fluentd, Kubernetes and more 1st Edition Phil Wilkins
Fluentd and Docker - running fluentd within a docker container
Fluentd and Distributed Logging at Kubecon
Fluentd – Making Logging Easy & Effective in a Multi-cloud & Hybrid Environme...
Fluentd Intro for OpenShift Commons Briefing
Fluentd introduction at ipros
Fluent Bit: Log Forwarding at Scale
The basics of fluentd
Distributed Logging Architecture in Container Era
Ad

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Geodesy 1.pptx...............................................
PDF
composite construction of structures.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Lecture Notes Electrical Wiring System Components
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Geodesy 1.pptx...............................................
composite construction of structures.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Embodied AI: Ushering in the Next Era of Intelligent Systems
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Lesson 3_Tessellation.pptx finite Mathematics
Model Code of Practice - Construction Work - 21102022 .pdf
Operating System & Kernel Study Guide-1 - converted.pdf
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Internet of Things (IOT) - A guide to understanding
bas. eng. economics group 4 presentation 1.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
OOP with Java - Java Introduction (Basics)
Lecture Notes Electrical Wiring System Components
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

Unifying Events and Logs into the Cloud