2. About Me
• Founder, NerdDevs
• Software Architect, TestReach
• Node.js Trainer
• Working in Software Development for 12 years
• Last 6 years only working in JavaScript
• Loves backbone.js
http://www.nerddevs.com
twitter : @sohel023010
skype : sohel023010
https://github.com/sohel-rana
3. What is Logger
• A device or computer program
• Creates a systematic recording of events, observations, or measurements.
• Application, System, OS etc
• Helps to debug/trace issues
4. What is Logger
• Timestamp
• Source
• Event Type(error, info, debug etc)
• Message
15. Winston and Fluentd
• Use fluent-logger module
• Create a transport with tag
• Use that transport in Winston
let fluentTransport = require('fluent-
logger').support.winstonTransport();
let fluent = new fluentTransport('mytag', config);
let logger = winston.createLogger({ transports: [fluent, new
(winston.transports.Console)()] });
//Fleuntd config
<source>
@type forward port 24224
</source>
<match mytag.*>
@type stdout
</match>
16. Using EFK
Key points
• EFK – stands for Elasticsearch,
Fluentd and Kibana
• Elasticsearch stores the data in a
structured way and manages the
indexes for efficient searching
• Kibana a tool, helps to visualize the
data
Steps
• Create fluentd transport in winston
• Forward the logs to Elasticsearch
• Configure kibana to connect with
Elasticsearch
• Install necessary plugins