SlideShare uma empresa Scribd logo
1 de 23
Baixar para ler offline
The State of Logging on Docker
March 26, 2015
1
Housekeeping
© 2015 Logentries. All Rights Reserved. Confidential. 2
•  Please ask questions via the chat pane
•  All registrants will receive a recorded copy of the webinar following
the presentation.
•  Follow us @Logentries
Meet The Presenters
© 2015 Logentries. All Rights Reserved. Confidential. 3
Trevor Parsons, PhD
Logentries Co-founder
& Chief Scientist
Peter Elger
NearForm Director of
Engineering
Bright Fulton
Swipely Director of
Engineering Operations
Webinar Outline
© 2015 Logentries. All Rights Reserved. Confidential. 4
•  Challenges with monitoring micro-services
•  What should you be logging?
•  The State of Logging on Docker
•  Inside the container
•  Outside the container
•  Specialized containers
•  Useful APIs
•  Common Questions
•  What about CoreOS?
Monitoring Micro-Services
© 2015 Logentries. All Rights Reserved. Confidential. 5
Containers: Ephemeral in Nature
© 2015 Logentries. All Rights Reserved. Confidential. 6
What to Log?
© 2015 Logentries. All Rights Reserved. Confidential. 7
Simple best practices for what to log:
•  When the event occurred: the timestamp
•  Structured Logs: JSON, KVP
•  Context: if someone bought a book… what book was it…
•  Unique Identifiers: request ID, User ID, Session ID, thread ID
•  Host Info: hostname & IP
•  Container Info: Image ID, Container ID, Process ID
Logging on Docker: No Standard Approach
© 2015 Logentries. All Rights Reserved. Confidential. 8
Docker Logging Support includes:
•  Capturing container stdout logs
•  Access via Docker_remote_api
•  Access via Docker CLI
•  $ docker logs [ID]
•  Will fetch the logs from a container
•  can be used to tail also
•  $ docker logs –tf –tail [ID]
Logging on Docker: No Standard Approach
© 2015 Logentries. All Rights Reserved. Confidential. 9
•  Inside the Container
•  Log from the application
•  Run a logging Daemon/collector within the container
•  Outside the Container (on the host)
•  Containers write logs to the host
•  Collector runs on the host
•  Logging Container
•  Collector runs in a specialized container
Inside the Container
© 2015 Logentries. All Rights Reserved. Confidential. 10
SERVER
LOG MANAGEMENT
& ANALYTICS
PLATFORMHOST OS
DOCKER
LOGSLOGS
APP APP
CONTAINER 1 CONTAINER 2
Daemon Daemon
Inside the Container
© 2015 Logentries. All Rights Reserved. Confidential. 11
•  Logging libs (log from your app code)
•  Install a collector inside a container
•  Use syslog inside a container
Outside the Container (on host)
© 2015 Logentries. All Rights Reserved. Confidential. 12
SERVER
LOG MANAGEMENT
& ANALYTICS
PLATFORM
HOST OS
DOCKER
CONTAINER 1 CONTAINER 2
APP APP
LOGS LOGS
LOGSAGENT
Outside the container (on host)
© 2015 Logentries. All Rights Reserved. Confidential. 13
•  Configure a container to bind to a volume & write logs to the volume
•  Write logs to stdout
•  Collector runs on the host
Logging Containers
© 2015 Logentries. All Rights Reserved. Confidential. 14
SERVER
LOG MANAGEMENT
& ANALYTICS
PLATFORMHOST OS
DOCKER
CONTAINER 1 CONTAINER 2 LOGGING CONTAINER
APP APP Agent
LOGS LOGS
LOGS
Logging Containers
© 2015 Logentries. All Rights Reserved. Confidential. 15
•  Syslog in a container
•  Collector in a container
•  E.g. Logentries container will collect Stats and Logs
•  https://github.com/nearform/docker-logentries
•  Logspout: https://github.com/gliderlabs/logspout
Common Questions
© 2015 Logentries. All Rights Reserved. Confidential. 16
•  Do I need to rotate any logs?
•  Is there a big performance hit?
•  E.g. collecting metrics from every container
•  Any security concerns?
What about CoreOS?
© 2015 Logentries. All Rights Reserved. Confidential. 17
•  Enables warehouse-scale computing
•  Used for managing clusters of containers
•  Distributed process manager, Fleet (based on systemd)
•  etcd for service discovery and global storage of your config settings
•  How you can log from your CoreOS Clusters
•  Journal - a modern logging system (e.g. JSON export, forward sealing)
•  Journal2Logentries: https://github.com/kelseyhightower/journal-2-logentries
Useful Resources:
© 2015 Logentries. All Rights Reserved. Confidential. 18
•  Docker CLI
•  https://docs.docker.com/reference/commandline/cli/
•  Docker Remote API
•  https://docs.docker.com/reference/api/docker_remote_api/
•  Stats API (From Docker 1.5)
•  https://github.com/docker/docker/pull/9984 (e.g. used by Logentries container)
•  Docker RunTime Metrics
•  Uses the native cgroup accounting metrics
•  https://docs.docker.com/articles/runmetrics/ (e.g. used by DataDog)
•  Docker Ruby Gem
•  https://github.com/swipely/docker-api
Useful Resources: Blogs
© 2015 Logentries. All Rights Reserved. Confidential. 19
•  The State of Logging on Docker
•  https://blog.logentries.com/2014/03/the-state-of-logging-on-docker/
•  What is the Docker Stats API
•  https://blog.logentries.com/2015/02/what-is-the-docker-stats-api/
•  Docker Log Management Using Fluentd
•  http://jasonwilder.com/blog/2014/03/17/docker-log-management-using-fluentd/
•  How to Centralize Logs from CoreOS Clusters
•  https://blog.logentries.com/2015/03/how-to-centralize-logs-from-coreos-clusters/
Useful Resources: Blogs
© 2015 Logentries. All Rights Reserved. Confidential. 20
•  The State of Logging on Docker
•  https://blog.logentries.com/2014/03/the-state-of-logging-on-docker/
•  What is the Docker Stats API
•  https://blog.logentries.com/2015/02/what-is-the-docker-stats-api/
•  Docker Log Management Using Fluentd
•  http://jasonwilder.com/blog/2014/03/17/docker-log-management-using-fluentd/
•  How to Centralize Logs from CoreOS Clusters
•  https://blog.logentries.com/2015/03/how-to-centralize-logs-from-coreos-clusters/
Our Docker Community Pack
© 2015 Logentries. All Rights Reserved. Confidential. 21
Getting Started
© 2015 Logentries. All Rights Reserved. Confidential. 22
•  Don’t have a Logentries Free Account Yet?
•  Sign-up for a free 30-day trial: http://logentries.com/quick-start
•  Docker & Node.Js Development:
•  http://www.nearform.com/
•  http://nscale.nearform.com/
•  Contact us directly!
•  Trevor.parsons@logentries.com
•  support@logentries.com
•  peter.elger@nearform.com
•  Let’s take a few questions!
Thank you!

Mais conteúdo relacionado

Mais procurados

Dockerizing Symfony Applications - Symfony Live Berlin 2014
Dockerizing Symfony Applications - Symfony Live Berlin 2014Dockerizing Symfony Applications - Symfony Live Berlin 2014
Dockerizing Symfony Applications - Symfony Live Berlin 2014D
 
CoreOS @Codetalks Hamburg
CoreOS @Codetalks HamburgCoreOS @Codetalks Hamburg
CoreOS @Codetalks HamburgTimo Derstappen
 
Comprehensive Monitoring for Docker
Comprehensive Monitoring for DockerComprehensive Monitoring for Docker
Comprehensive Monitoring for DockerChristian Beedgen
 
ContainerCon sysdig Slides
ContainerCon sysdig Slides ContainerCon sysdig Slides
ContainerCon sysdig Slides Loris Degioanni
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 applicationRoman Rodomansky
 
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and ChefScaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chefbridgetkromhout
 
Docker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMDocker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMNeependra Khare
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014André Rømcke
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker, Inc.
 
Container Performance Analysis
Container Performance AnalysisContainer Performance Analysis
Container Performance AnalysisBrendan Gregg
 
Go 1.8 'new' networking features
Go 1.8 'new' networking featuresGo 1.8 'new' networking features
Go 1.8 'new' networking featuresstrikr .
 
Docker and Maestro for fun, development and profit
Docker and Maestro for fun, development and profitDocker and Maestro for fun, development and profit
Docker and Maestro for fun, development and profitMaxime Petazzoni
 
runC: The little engine that could (run Docker containers) by Docker Captain ...
runC: The little engine that could (run Docker containers) by Docker Captain ...runC: The little engine that could (run Docker containers) by Docker Captain ...
runC: The little engine that could (run Docker containers) by Docker Captain ...Docker, Inc.
 
Docker Networking – Running multi-host applications
Docker Networking – Running multi-host applicationsDocker Networking – Running multi-host applications
Docker Networking – Running multi-host applicationsChristina Rasimus
 
Containerd: Building a Container Supervisor by Michael Crosby
Containerd: Building a Container Supervisor by Michael CrosbyContainerd: Building a Container Supervisor by Michael Crosby
Containerd: Building a Container Supervisor by Michael CrosbyDocker, Inc.
 
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep diveDCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep diveMadhu Venugopal
 
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...Fwdays
 

Mais procurados (20)

Dockerizing Symfony Applications - Symfony Live Berlin 2014
Dockerizing Symfony Applications - Symfony Live Berlin 2014Dockerizing Symfony Applications - Symfony Live Berlin 2014
Dockerizing Symfony Applications - Symfony Live Berlin 2014
 
CoreOS @Codetalks Hamburg
CoreOS @Codetalks HamburgCoreOS @Codetalks Hamburg
CoreOS @Codetalks Hamburg
 
Docker practical solutions
Docker practical solutionsDocker practical solutions
Docker practical solutions
 
Comprehensive Monitoring for Docker
Comprehensive Monitoring for DockerComprehensive Monitoring for Docker
Comprehensive Monitoring for Docker
 
ContainerCon sysdig Slides
ContainerCon sysdig Slides ContainerCon sysdig Slides
ContainerCon sysdig Slides
 
Project Atomic-Nulecule
Project Atomic-NuleculeProject Atomic-Nulecule
Project Atomic-Nulecule
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
 
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and ChefScaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
Scaling Next-Generation Internet TV on AWS With Docker, Packer, and Chef
 
Docker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBMDocker Multi Host Networking, Rachit Arora, IBM
Docker Multi Host Networking, Rachit Arora, IBM
 
What's New in Docker 1.12?
What's New in Docker 1.12?What's New in Docker 1.12?
What's New in Docker 1.12?
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0
 
Container Performance Analysis
Container Performance AnalysisContainer Performance Analysis
Container Performance Analysis
 
Go 1.8 'new' networking features
Go 1.8 'new' networking featuresGo 1.8 'new' networking features
Go 1.8 'new' networking features
 
Docker and Maestro for fun, development and profit
Docker and Maestro for fun, development and profitDocker and Maestro for fun, development and profit
Docker and Maestro for fun, development and profit
 
runC: The little engine that could (run Docker containers) by Docker Captain ...
runC: The little engine that could (run Docker containers) by Docker Captain ...runC: The little engine that could (run Docker containers) by Docker Captain ...
runC: The little engine that could (run Docker containers) by Docker Captain ...
 
Docker Networking – Running multi-host applications
Docker Networking – Running multi-host applicationsDocker Networking – Running multi-host applications
Docker Networking – Running multi-host applications
 
Containerd: Building a Container Supervisor by Michael Crosby
Containerd: Building a Container Supervisor by Michael CrosbyContainerd: Building a Container Supervisor by Michael Crosby
Containerd: Building a Container Supervisor by Michael Crosby
 
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep diveDCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep dive
 
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...
Алексей Петров "Dockerize Me: Distributed PHP applications with Symfony, Dock...
 

Semelhante a The State of Logging on Docker

컨테이너 기술 소개 - Warden, Garden, Docker
컨테이너 기술 소개 - Warden, Garden, Docker컨테이너 기술 소개 - Warden, Garden, Docker
컨테이너 기술 소개 - Warden, Garden, Dockerseungdon Choi
 
Python Linters at Scale.pdf
Python Linters at Scale.pdfPython Linters at Scale.pdf
Python Linters at Scale.pdfJimmy Lai
 
Meetup Openshift Geneva 03/10
Meetup Openshift Geneva 03/10Meetup Openshift Geneva 03/10
Meetup Openshift Geneva 03/10MagaliDavidCruz
 
Docker at and with SignalFx
Docker at and with SignalFxDocker at and with SignalFx
Docker at and with SignalFxSignalFx
 
DevOps, Kubernetes and Istio
DevOps, Kubernetes and IstioDevOps, Kubernetes and Istio
DevOps, Kubernetes and IstioJohn Jardin
 
Node.js Service - Best practices in 2019
Node.js Service - Best practices in 2019Node.js Service - Best practices in 2019
Node.js Service - Best practices in 2019Olivier Loverde
 
PAC 2019 virtual Bruno Audoux
PAC 2019 virtual Bruno Audoux PAC 2019 virtual Bruno Audoux
PAC 2019 virtual Bruno Audoux Neotys
 
Adopting OpenTelemetry
Adopting OpenTelemetryAdopting OpenTelemetry
Adopting OpenTelemetryVincent Behar
 
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...NETWAYS
 
Disenchantment: Netflix Titus, Its Feisty Team, and Daemons
Disenchantment: Netflix Titus, Its Feisty Team, and DaemonsDisenchantment: Netflix Titus, Its Feisty Team, and Daemons
Disenchantment: Netflix Titus, Its Feisty Team, and DaemonsC4Media
 
Manage Microservices Chaos and Complexity with Observability
Manage Microservices Chaos and Complexity with ObservabilityManage Microservices Chaos and Complexity with Observability
Manage Microservices Chaos and Complexity with ObservabilityNGINX, Inc.
 
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)Lee Myring
 
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015Datadog
 
Fluentd and docker monitoring
Fluentd and docker monitoringFluentd and docker monitoring
Fluentd and docker monitoringVinay Krishna
 
from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?strikr .
 
OpenNTF - The Lotus Notes and Domino Open Source Organization
OpenNTF - The Lotus Notes and Domino Open Source OrganizationOpenNTF - The Lotus Notes and Domino Open Source Organization
OpenNTF - The Lotus Notes and Domino Open Source OrganizationBruce Elgort
 
12 Factor App Methodology
12 Factor App Methodology12 Factor App Methodology
12 Factor App Methodologylaeshin park
 
Docker Enterprise Deployment Planning
Docker Enterprise Deployment PlanningDocker Enterprise Deployment Planning
Docker Enterprise Deployment PlanningStephane Woillez
 
Strategy, planning and governance for enterprise deployments of containers - ...
Strategy, planning and governance for enterprise deployments of containers - ...Strategy, planning and governance for enterprise deployments of containers - ...
Strategy, planning and governance for enterprise deployments of containers - ...The Incredible Automation Day
 

Semelhante a The State of Logging on Docker (20)

컨테이너 기술 소개 - Warden, Garden, Docker
컨테이너 기술 소개 - Warden, Garden, Docker컨테이너 기술 소개 - Warden, Garden, Docker
컨테이너 기술 소개 - Warden, Garden, Docker
 
Python Linters at Scale.pdf
Python Linters at Scale.pdfPython Linters at Scale.pdf
Python Linters at Scale.pdf
 
Meetup Openshift Geneva 03/10
Meetup Openshift Geneva 03/10Meetup Openshift Geneva 03/10
Meetup Openshift Geneva 03/10
 
Docker at and with SignalFx
Docker at and with SignalFxDocker at and with SignalFx
Docker at and with SignalFx
 
Docker {at,with} SignalFx
Docker {at,with} SignalFxDocker {at,with} SignalFx
Docker {at,with} SignalFx
 
DevOps, Kubernetes and Istio
DevOps, Kubernetes and IstioDevOps, Kubernetes and Istio
DevOps, Kubernetes and Istio
 
Node.js Service - Best practices in 2019
Node.js Service - Best practices in 2019Node.js Service - Best practices in 2019
Node.js Service - Best practices in 2019
 
PAC 2019 virtual Bruno Audoux
PAC 2019 virtual Bruno Audoux PAC 2019 virtual Bruno Audoux
PAC 2019 virtual Bruno Audoux
 
Adopting OpenTelemetry
Adopting OpenTelemetryAdopting OpenTelemetry
Adopting OpenTelemetry
 
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
 
Disenchantment: Netflix Titus, Its Feisty Team, and Daemons
Disenchantment: Netflix Titus, Its Feisty Team, and DaemonsDisenchantment: Netflix Titus, Its Feisty Team, and Daemons
Disenchantment: Netflix Titus, Its Feisty Team, and Daemons
 
Manage Microservices Chaos and Complexity with Observability
Manage Microservices Chaos and Complexity with ObservabilityManage Microservices Chaos and Complexity with Observability
Manage Microservices Chaos and Complexity with Observability
 
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
Log aggregation: using Elasticsearch, Fluentd/Fluentbit and Kibana (EFK)
 
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015
Docker Usage Patterns - Meetup Docker Paris - November, 10th 2015
 
Fluentd and docker monitoring
Fluentd and docker monitoringFluentd and docker monitoring
Fluentd and docker monitoring
 
from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?
 
OpenNTF - The Lotus Notes and Domino Open Source Organization
OpenNTF - The Lotus Notes and Domino Open Source OrganizationOpenNTF - The Lotus Notes and Domino Open Source Organization
OpenNTF - The Lotus Notes and Domino Open Source Organization
 
12 Factor App Methodology
12 Factor App Methodology12 Factor App Methodology
12 Factor App Methodology
 
Docker Enterprise Deployment Planning
Docker Enterprise Deployment PlanningDocker Enterprise Deployment Planning
Docker Enterprise Deployment Planning
 
Strategy, planning and governance for enterprise deployments of containers - ...
Strategy, planning and governance for enterprise deployments of containers - ...Strategy, planning and governance for enterprise deployments of containers - ...
Strategy, planning and governance for enterprise deployments of containers - ...
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

The State of Logging on Docker

  • 1. The State of Logging on Docker March 26, 2015 1
  • 2. Housekeeping © 2015 Logentries. All Rights Reserved. Confidential. 2 •  Please ask questions via the chat pane •  All registrants will receive a recorded copy of the webinar following the presentation. •  Follow us @Logentries
  • 3. Meet The Presenters © 2015 Logentries. All Rights Reserved. Confidential. 3 Trevor Parsons, PhD Logentries Co-founder & Chief Scientist Peter Elger NearForm Director of Engineering Bright Fulton Swipely Director of Engineering Operations
  • 4. Webinar Outline © 2015 Logentries. All Rights Reserved. Confidential. 4 •  Challenges with monitoring micro-services •  What should you be logging? •  The State of Logging on Docker •  Inside the container •  Outside the container •  Specialized containers •  Useful APIs •  Common Questions •  What about CoreOS?
  • 5. Monitoring Micro-Services © 2015 Logentries. All Rights Reserved. Confidential. 5
  • 6. Containers: Ephemeral in Nature © 2015 Logentries. All Rights Reserved. Confidential. 6
  • 7. What to Log? © 2015 Logentries. All Rights Reserved. Confidential. 7 Simple best practices for what to log: •  When the event occurred: the timestamp •  Structured Logs: JSON, KVP •  Context: if someone bought a book… what book was it… •  Unique Identifiers: request ID, User ID, Session ID, thread ID •  Host Info: hostname & IP •  Container Info: Image ID, Container ID, Process ID
  • 8. Logging on Docker: No Standard Approach © 2015 Logentries. All Rights Reserved. Confidential. 8 Docker Logging Support includes: •  Capturing container stdout logs •  Access via Docker_remote_api •  Access via Docker CLI •  $ docker logs [ID] •  Will fetch the logs from a container •  can be used to tail also •  $ docker logs –tf –tail [ID]
  • 9. Logging on Docker: No Standard Approach © 2015 Logentries. All Rights Reserved. Confidential. 9 •  Inside the Container •  Log from the application •  Run a logging Daemon/collector within the container •  Outside the Container (on the host) •  Containers write logs to the host •  Collector runs on the host •  Logging Container •  Collector runs in a specialized container
  • 10. Inside the Container © 2015 Logentries. All Rights Reserved. Confidential. 10 SERVER LOG MANAGEMENT & ANALYTICS PLATFORMHOST OS DOCKER LOGSLOGS APP APP CONTAINER 1 CONTAINER 2 Daemon Daemon
  • 11. Inside the Container © 2015 Logentries. All Rights Reserved. Confidential. 11 •  Logging libs (log from your app code) •  Install a collector inside a container •  Use syslog inside a container
  • 12. Outside the Container (on host) © 2015 Logentries. All Rights Reserved. Confidential. 12 SERVER LOG MANAGEMENT & ANALYTICS PLATFORM HOST OS DOCKER CONTAINER 1 CONTAINER 2 APP APP LOGS LOGS LOGSAGENT
  • 13. Outside the container (on host) © 2015 Logentries. All Rights Reserved. Confidential. 13 •  Configure a container to bind to a volume & write logs to the volume •  Write logs to stdout •  Collector runs on the host
  • 14. Logging Containers © 2015 Logentries. All Rights Reserved. Confidential. 14 SERVER LOG MANAGEMENT & ANALYTICS PLATFORMHOST OS DOCKER CONTAINER 1 CONTAINER 2 LOGGING CONTAINER APP APP Agent LOGS LOGS LOGS
  • 15. Logging Containers © 2015 Logentries. All Rights Reserved. Confidential. 15 •  Syslog in a container •  Collector in a container •  E.g. Logentries container will collect Stats and Logs •  https://github.com/nearform/docker-logentries •  Logspout: https://github.com/gliderlabs/logspout
  • 16. Common Questions © 2015 Logentries. All Rights Reserved. Confidential. 16 •  Do I need to rotate any logs? •  Is there a big performance hit? •  E.g. collecting metrics from every container •  Any security concerns?
  • 17. What about CoreOS? © 2015 Logentries. All Rights Reserved. Confidential. 17 •  Enables warehouse-scale computing •  Used for managing clusters of containers •  Distributed process manager, Fleet (based on systemd) •  etcd for service discovery and global storage of your config settings •  How you can log from your CoreOS Clusters •  Journal - a modern logging system (e.g. JSON export, forward sealing) •  Journal2Logentries: https://github.com/kelseyhightower/journal-2-logentries
  • 18. Useful Resources: © 2015 Logentries. All Rights Reserved. Confidential. 18 •  Docker CLI •  https://docs.docker.com/reference/commandline/cli/ •  Docker Remote API •  https://docs.docker.com/reference/api/docker_remote_api/ •  Stats API (From Docker 1.5) •  https://github.com/docker/docker/pull/9984 (e.g. used by Logentries container) •  Docker RunTime Metrics •  Uses the native cgroup accounting metrics •  https://docs.docker.com/articles/runmetrics/ (e.g. used by DataDog) •  Docker Ruby Gem •  https://github.com/swipely/docker-api
  • 19. Useful Resources: Blogs © 2015 Logentries. All Rights Reserved. Confidential. 19 •  The State of Logging on Docker •  https://blog.logentries.com/2014/03/the-state-of-logging-on-docker/ •  What is the Docker Stats API •  https://blog.logentries.com/2015/02/what-is-the-docker-stats-api/ •  Docker Log Management Using Fluentd •  http://jasonwilder.com/blog/2014/03/17/docker-log-management-using-fluentd/ •  How to Centralize Logs from CoreOS Clusters •  https://blog.logentries.com/2015/03/how-to-centralize-logs-from-coreos-clusters/
  • 20. Useful Resources: Blogs © 2015 Logentries. All Rights Reserved. Confidential. 20 •  The State of Logging on Docker •  https://blog.logentries.com/2014/03/the-state-of-logging-on-docker/ •  What is the Docker Stats API •  https://blog.logentries.com/2015/02/what-is-the-docker-stats-api/ •  Docker Log Management Using Fluentd •  http://jasonwilder.com/blog/2014/03/17/docker-log-management-using-fluentd/ •  How to Centralize Logs from CoreOS Clusters •  https://blog.logentries.com/2015/03/how-to-centralize-logs-from-coreos-clusters/
  • 21. Our Docker Community Pack © 2015 Logentries. All Rights Reserved. Confidential. 21
  • 22. Getting Started © 2015 Logentries. All Rights Reserved. Confidential. 22 •  Don’t have a Logentries Free Account Yet? •  Sign-up for a free 30-day trial: http://logentries.com/quick-start •  Docker & Node.Js Development: •  http://www.nearform.com/ •  http://nscale.nearform.com/ •  Contact us directly! •  Trevor.parsons@logentries.com •  support@logentries.com •  peter.elger@nearform.com •  Let’s take a few questions!