SlideShare a Scribd company logo
Sumo Logic Confidential
Logging & Docker
Christian Beedgen, CTO & Co-Founder, Sumo Logic
Seattle Docker Meetup, October 13, 2015
Sumo Logic Confidential
$ whoami
• Co-Founder & CTO, Sumo Logic
Cloud-based Machine Data Analytics Service
Applications, Operations, Security
• Chief Architect, ArcSight
Major SIEM player in the enterprise space
Log Management for security and compliance
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York City
Sumo Logic Confidential
December 2014, New York Cityhttp://www.slideshare.net/raychaser/
6-million-ways-to-log-in-docker-nyc-
docker-meetup-12172014
Sumo Logic Confidential
Season 2
Where Are We In Late 2015?
Sumo Logic Confidential
Basics
• Logging in Docker as per 12factor.net
Sumo Logic Confidential
Basics
• Logging in Docker as per 12factor.net
Sumo Logic Confidential
Basics
• Logging in Docker as per 12factor.net
• Also, one process per container, plz!
Sumo Logic Confidential
Pre-Docker 1.6
• Docker simply collects stdout and stderr from a container
• Wrapped in a bit of JSON and stored on disk
Sumo Logic Confidential
Pre-Docker 1.6
• Docker simply collects stdout and stderr from a container
• Wrapped in a bit of JSON and stored on disk
Sumo Logic Confidential
Pre-Docker 1.6
• Docker simply collects stdout and stderr from a container
• Wrapped in a bit of JSON and stored on disk
Sumo Logic Confidential
Pre-Docker 1.6
• Docker simply collects stdout and stderr from a container
• Wrapped in a bit of JSON and stored on disk
Sumo Logic Confidential
Pre-Docker 1.6
• Early hardcore crowd would just collect /var/lib/docker/containers/**
• And then of course there’s the UX: docker logs
• docker logs is using a daemon API for getting the logs
• This leads to logspout – attach to API, forward to Syslog
• https://github.com/gliderlabs/logspout
Sumo Logic Confidential
Docker 1.6 Introduced Log Drivers
• Hallelujah
• Initially supports json-file, syslog, null
• json-file – default, this is the old mechanism
– Continues to this day to be required for API access and docker logs
• docker run -–log-driver syslog …
– Sends to local Syslog, no more writing to disk
• docker run –-log-driver null
– STFU, basically
Sumo Logic Confidential
Docker 1.7 Introduces --log-opt
• Now we can pass parameters to the log drivers!
• docker run 
--log-driver syslog 
--log-opt syslog-address=(udp|tcp)://… 
--log-opt syslog-facility=(kern|daemon|user|local0|…) 
--log-opt syslog-tag=“myapp”
• Forward directly to local Syslog aggregator, or to a cloud-based logging service
• Docker 1.7 also added support to log to journald
Sumo Logic Confidential
Docker 1.8, 1.9 - Even More Log Drivers
• Fluentd
• GELF
• AWS
Sumo Logic Confidential
Also in Docker 1.8 – Options For json-file
• json-file still the default, still required for docker logs and /logs API
• Long standing problem – will eventually fill up your disk
• Folks have been using logrotate hacks…
• Now, json-file log driver can be configured:
• Basically, keep up to max-file files, roll current at max-size
Sumo Logic Confidential
Coming In Docker 1.9 – Log Tags
• Many containers can share a single aggregator downstream the log driver
• All this muxing creates a problem – which log from which container?
• Basically, there is a loss of meta data
• Log Tags enable to use of container meta data as part of each message
• --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
• Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]:
Hello from Docker.
Sumo Logic Confidential
Coming In Docker 1.9 – Log Tags
• Many containers can share a single aggregator downstream the log driver
• All this muxing creates a problem – which log from which container?
• Basically, there is a loss of meta data
• Log Tags enable to use of container meta data as part of each message
• --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
• Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]:
Hello from Docker.
Sumo Logic Confidential
Coming In Docker 1.9 – Log Tags
• Many containers can share a single aggregator downstream the log driver
• All this muxing creates a problem – which log from which container?
• Basically, there is a loss of meta data
• Log Tags enable to use of container meta data as part of each message
• --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
• Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]:
Hello from Docker.
Sumo Logic Confidential
Coming In Docker 1.9 – Log Tags
• Many containers can share a single aggregator downstream the log driver
• All this muxing creates a problem – which log from which container?
• Basically, there is a loss of meta data
• Log Tags enable to use of container meta data as part of each message
• --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}"
• Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]:
Hello from Docker.
Sumo Logic Confidential
What Is Sumo Working On?
• We have containerized our collectors
– https://github.com/SumoLogic/sumologic-collector-docker
– docker run -d -p 514:514 -p 514:514/udp 
--name="sumo-logic-collector" 
sumologic/collector:latest-syslog 
[Access ID] [Access key]
– https://www.sumologic.com/2015/09/09/update-on-logging-with-docker/
Sumo Logic Confidential
What Is Sumo Working On?
• We are working towards our vision of Comprehensive Monitoring
– https://www.sumologic.com/2015/06/16/comprehensive-monitoring-for-docker-more-than-just-logs/
• We have released an initial App for Docker at DockerCon 2015

More Related Content

What's hot

Breaking the RpiDocker challenge
Breaking the RpiDocker challenge Breaking the RpiDocker challenge
Breaking the RpiDocker challenge
Nicolas De Loof
 
Docker practical solutions
Docker practical solutionsDocker practical solutions
Docker practical solutions
Kesav Kumar Kolla
 
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
 
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
bridgetkromhout
 
Project Atomic-Nulecule
Project Atomic-NuleculeProject Atomic-Nulecule
Project Atomic-Nulecule
Lalatendu Mohanty
 
CoreOS introduction - Johann Romefort
CoreOS introduction - Johann RomefortCoreOS introduction - Johann Romefort
CoreOS introduction - Johann RomefortStylight
 
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?
Ajeet Singh Raina
 
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
Neependra Khare
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
Roman Rodomansky
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0
Docker, Inc.
 
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
Maxime Petazzoni
 
CoreOS Overview
CoreOS OverviewCoreOS Overview
CoreOS Overview
Nikolay Yurin
 
ContainerCon sysdig Slides
ContainerCon sysdig Slides ContainerCon sysdig Slides
ContainerCon sysdig Slides
Loris Degioanni
 
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.
 
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep diveDCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep dive
Madhu Venugopal
 
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
Docker, Inc.
 
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
André Rømcke
 
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Lakmal Warusawithana
 
Docker 1.11 @ Docker SF Meetup
Docker 1.11 @ Docker SF MeetupDocker 1.11 @ Docker SF Meetup
Docker 1.11 @ Docker SF Meetup
Docker, Inc.
 
CoreOS @ summer meetup in Utrecht
CoreOS @ summer meetup in UtrechtCoreOS @ summer meetup in Utrecht
CoreOS @ summer meetup in UtrechtTimo Derstappen
 

What's hot (20)

Breaking the RpiDocker challenge
Breaking the RpiDocker challenge Breaking the RpiDocker challenge
Breaking the RpiDocker challenge
 
Docker practical solutions
Docker practical solutionsDocker practical solutions
Docker practical solutions
 
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
 
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
 
Project Atomic-Nulecule
Project Atomic-NuleculeProject Atomic-Nulecule
Project Atomic-Nulecule
 
CoreOS introduction - Johann Romefort
CoreOS introduction - Johann RomefortCoreOS introduction - Johann Romefort
CoreOS introduction - Johann Romefort
 
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?
 
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
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0
 
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
 
CoreOS Overview
CoreOS OverviewCoreOS Overview
CoreOS Overview
 
ContainerCon sysdig Slides
ContainerCon sysdig Slides ContainerCon sysdig Slides
ContainerCon sysdig Slides
 
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 ...
 
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep diveDCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep dive
 
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
 
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
 
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
 
Docker 1.11 @ Docker SF Meetup
Docker 1.11 @ Docker SF MeetupDocker 1.11 @ Docker SF Meetup
Docker 1.11 @ Docker SF Meetup
 
CoreOS @ summer meetup in Utrecht
CoreOS @ summer meetup in UtrechtCoreOS @ summer meetup in Utrecht
CoreOS @ summer meetup in Utrecht
 

Viewers also liked

How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
Christian Beedgen
 
Using AWS To Build A Scalable Machine Data Analytics Service
Using AWS To Build A Scalable Machine Data Analytics ServiceUsing AWS To Build A Scalable Machine Data Analytics Service
Using AWS To Build A Scalable Machine Data Analytics Service
Christian Beedgen
 
Scaling A Start-up DevOps Team To 10x While Scaling The System 50x - DevOpsD...
Scaling A Start-up DevOps Team To 10x  While Scaling The System 50x - DevOpsD...Scaling A Start-up DevOps Team To 10x  While Scaling The System 50x - DevOpsD...
Scaling A Start-up DevOps Team To 10x While Scaling The System 50x - DevOpsD...
Christian Beedgen
 
How to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
How to Meta-Sumo - Using Logs for Agile Monitoring of Production ServicesHow to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
How to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
Christian Beedgen
 
Machine Data for the Masses
Machine Data for the MassesMachine Data for the Masses
Machine Data for the Masses
Christian Beedgen
 
Comprehensive Monitoring for Docker
Comprehensive Monitoring for DockerComprehensive Monitoring for Docker
Comprehensive Monitoring for Docker
Christian Beedgen
 

Viewers also liked (6)

How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
How Sumo Logic And Anki Build Highly Resilient Services On AWS To Manage Mass...
 
Using AWS To Build A Scalable Machine Data Analytics Service
Using AWS To Build A Scalable Machine Data Analytics ServiceUsing AWS To Build A Scalable Machine Data Analytics Service
Using AWS To Build A Scalable Machine Data Analytics Service
 
Scaling A Start-up DevOps Team To 10x While Scaling The System 50x - DevOpsD...
Scaling A Start-up DevOps Team To 10x  While Scaling The System 50x - DevOpsD...Scaling A Start-up DevOps Team To 10x  While Scaling The System 50x - DevOpsD...
Scaling A Start-up DevOps Team To 10x While Scaling The System 50x - DevOpsD...
 
How to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
How to Meta-Sumo - Using Logs for Agile Monitoring of Production ServicesHow to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
How to Meta-Sumo - Using Logs for Agile Monitoring of Production Services
 
Machine Data for the Masses
Machine Data for the MassesMachine Data for the Masses
Machine Data for the Masses
 
Comprehensive Monitoring for Docker
Comprehensive Monitoring for DockerComprehensive Monitoring for Docker
Comprehensive Monitoring for Docker
 

Similar to Logging & Docker - Season 2

Video Analysis in Hadoop
Video Analysis in HadoopVideo Analysis in Hadoop
Video Analysis in Hadoop
DataWorks Summit
 
How to improve ELK log pipeline performance
How to improve ELK log pipeline performanceHow to improve ELK log pipeline performance
How to improve ELK log pipeline performance
Steven Shim
 
Navigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy
 
Docker Security Overview
Docker Security OverviewDocker Security Overview
Docker Security Overview
Sreenivas Makam
 
Postgre sql linuxcontainers by Jignesh Shah
Postgre sql linuxcontainers by Jignesh ShahPostgre sql linuxcontainers by Jignesh Shah
Postgre sql linuxcontainers by Jignesh Shah
PivotalOpenSourceHub
 
もうひとつのコンテナ実行環境 runq のご紹介
もうひとつのコンテナ実行環境 runq のご紹介もうひとつのコンテナ実行環境 runq のご紹介
もうひとつのコンテナ実行環境 runq のご紹介
Takehiko Amano
 
PostgreSQL and Linux Containers
PostgreSQL and Linux ContainersPostgreSQL and Linux Containers
PostgreSQL and Linux Containers
Jignesh Shah
 
Docker {at,with} SignalFx
Docker {at,with} SignalFxDocker {at,with} SignalFx
Docker {at,with} SignalFx
Maxime Petazzoni
 
Before & After Docker Init
Before & After Docker InitBefore & After Docker Init
Before & After Docker Init
Angel Borroy López
 
Docker at and with SignalFx
Docker at and with SignalFxDocker at and with SignalFx
Docker at and with SignalFx
SignalFx
 
Don’t turn your logs into cuneiform
Don’t turn your logs into cuneiformDon’t turn your logs into cuneiform
Don’t turn your logs into cuneiform
Andrey Rebrov
 
Docker - From Walking To Running
Docker - From Walking To RunningDocker - From Walking To Running
Docker - From Walking To Running
Giacomo Vacca
 
Docker Kubernetes Istio
Docker Kubernetes IstioDocker Kubernetes Istio
Docker Kubernetes Istio
Araf Karsh Hamid
 
Docker Mentorweek beginner workshop notes
Docker Mentorweek beginner workshop notesDocker Mentorweek beginner workshop notes
Docker Mentorweek beginner workshop notes
Sreenivas Makam
 
CloudStack / Saltstack lightning talk at DevOps Amsterdam
CloudStack / Saltstack lightning talk at DevOps AmsterdamCloudStack / Saltstack lightning talk at DevOps Amsterdam
CloudStack / Saltstack lightning talk at DevOps Amsterdam
Sebastien Goasguen
 
Netflix oss season 2 episode 1 - meetup Lightning talks
Netflix oss   season 2 episode 1 - meetup Lightning talksNetflix oss   season 2 episode 1 - meetup Lightning talks
Netflix oss season 2 episode 1 - meetup Lightning talksRuslan Meshenberg
 
Docker 2014
Docker 2014Docker 2014
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker SecurityTokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Phil Estes
 
Unraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production CloudUnraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production Cloud
Salman Baset
 
2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi
QNIB Solutions
 

Similar to Logging & Docker - Season 2 (20)

Video Analysis in Hadoop
Video Analysis in HadoopVideo Analysis in Hadoop
Video Analysis in Hadoop
 
How to improve ELK log pipeline performance
How to improve ELK log pipeline performanceHow to improve ELK log pipeline performance
How to improve ELK log pipeline performance
 
Navigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
 
Docker Security Overview
Docker Security OverviewDocker Security Overview
Docker Security Overview
 
Postgre sql linuxcontainers by Jignesh Shah
Postgre sql linuxcontainers by Jignesh ShahPostgre sql linuxcontainers by Jignesh Shah
Postgre sql linuxcontainers by Jignesh Shah
 
もうひとつのコンテナ実行環境 runq のご紹介
もうひとつのコンテナ実行環境 runq のご紹介もうひとつのコンテナ実行環境 runq のご紹介
もうひとつのコンテナ実行環境 runq のご紹介
 
PostgreSQL and Linux Containers
PostgreSQL and Linux ContainersPostgreSQL and Linux Containers
PostgreSQL and Linux Containers
 
Docker {at,with} SignalFx
Docker {at,with} SignalFxDocker {at,with} SignalFx
Docker {at,with} SignalFx
 
Before & After Docker Init
Before & After Docker InitBefore & After Docker Init
Before & After Docker Init
 
Docker at and with SignalFx
Docker at and with SignalFxDocker at and with SignalFx
Docker at and with SignalFx
 
Don’t turn your logs into cuneiform
Don’t turn your logs into cuneiformDon’t turn your logs into cuneiform
Don’t turn your logs into cuneiform
 
Docker - From Walking To Running
Docker - From Walking To RunningDocker - From Walking To Running
Docker - From Walking To Running
 
Docker Kubernetes Istio
Docker Kubernetes IstioDocker Kubernetes Istio
Docker Kubernetes Istio
 
Docker Mentorweek beginner workshop notes
Docker Mentorweek beginner workshop notesDocker Mentorweek beginner workshop notes
Docker Mentorweek beginner workshop notes
 
CloudStack / Saltstack lightning talk at DevOps Amsterdam
CloudStack / Saltstack lightning talk at DevOps AmsterdamCloudStack / Saltstack lightning talk at DevOps Amsterdam
CloudStack / Saltstack lightning talk at DevOps Amsterdam
 
Netflix oss season 2 episode 1 - meetup Lightning talks
Netflix oss   season 2 episode 1 - meetup Lightning talksNetflix oss   season 2 episode 1 - meetup Lightning talks
Netflix oss season 2 episode 1 - meetup Lightning talks
 
Docker 2014
Docker 2014Docker 2014
Docker 2014
 
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker SecurityTokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker Security
 
Unraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production CloudUnraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production Cloud
 
2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi
 

Recently uploaded

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
Cyanic lab
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
vrstrong314
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Globus
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 

Recently uploaded (20)

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Cyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdfCyaniclab : Software Development Agency Portfolio.pdf
Cyaniclab : Software Development Agency Portfolio.pdf
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
Exploring Innovations in Data Repository Solutions - Insights from the U.S. G...
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 

Logging & Docker - Season 2

  • 1. Sumo Logic Confidential Logging & Docker Christian Beedgen, CTO & Co-Founder, Sumo Logic Seattle Docker Meetup, October 13, 2015
  • 2. Sumo Logic Confidential $ whoami • Co-Founder & CTO, Sumo Logic Cloud-based Machine Data Analytics Service Applications, Operations, Security • Chief Architect, ArcSight Major SIEM player in the enterprise space Log Management for security and compliance
  • 3. Sumo Logic Confidential December 2014, New York City
  • 4. Sumo Logic Confidential December 2014, New York City
  • 5. Sumo Logic Confidential December 2014, New York City
  • 6. Sumo Logic Confidential December 2014, New York City
  • 7. Sumo Logic Confidential December 2014, New York City
  • 8. Sumo Logic Confidential December 2014, New York City
  • 9. Sumo Logic Confidential December 2014, New York City
  • 10. Sumo Logic Confidential December 2014, New York City
  • 11. Sumo Logic Confidential December 2014, New York City
  • 12. Sumo Logic Confidential December 2014, New York City
  • 13. Sumo Logic Confidential December 2014, New York City
  • 14. Sumo Logic Confidential December 2014, New York City
  • 15. Sumo Logic Confidential December 2014, New York City
  • 16. Sumo Logic Confidential December 2014, New York City
  • 17. Sumo Logic Confidential December 2014, New York Cityhttp://www.slideshare.net/raychaser/ 6-million-ways-to-log-in-docker-nyc- docker-meetup-12172014
  • 18. Sumo Logic Confidential Season 2 Where Are We In Late 2015?
  • 19. Sumo Logic Confidential Basics • Logging in Docker as per 12factor.net
  • 20. Sumo Logic Confidential Basics • Logging in Docker as per 12factor.net
  • 21. Sumo Logic Confidential Basics • Logging in Docker as per 12factor.net • Also, one process per container, plz!
  • 22. Sumo Logic Confidential Pre-Docker 1.6 • Docker simply collects stdout and stderr from a container • Wrapped in a bit of JSON and stored on disk
  • 23. Sumo Logic Confidential Pre-Docker 1.6 • Docker simply collects stdout and stderr from a container • Wrapped in a bit of JSON and stored on disk
  • 24. Sumo Logic Confidential Pre-Docker 1.6 • Docker simply collects stdout and stderr from a container • Wrapped in a bit of JSON and stored on disk
  • 25. Sumo Logic Confidential Pre-Docker 1.6 • Docker simply collects stdout and stderr from a container • Wrapped in a bit of JSON and stored on disk
  • 26. Sumo Logic Confidential Pre-Docker 1.6 • Early hardcore crowd would just collect /var/lib/docker/containers/** • And then of course there’s the UX: docker logs • docker logs is using a daemon API for getting the logs • This leads to logspout – attach to API, forward to Syslog • https://github.com/gliderlabs/logspout
  • 27. Sumo Logic Confidential Docker 1.6 Introduced Log Drivers • Hallelujah • Initially supports json-file, syslog, null • json-file – default, this is the old mechanism – Continues to this day to be required for API access and docker logs • docker run -–log-driver syslog … – Sends to local Syslog, no more writing to disk • docker run –-log-driver null – STFU, basically
  • 28. Sumo Logic Confidential Docker 1.7 Introduces --log-opt • Now we can pass parameters to the log drivers! • docker run --log-driver syslog --log-opt syslog-address=(udp|tcp)://… --log-opt syslog-facility=(kern|daemon|user|local0|…) --log-opt syslog-tag=“myapp” • Forward directly to local Syslog aggregator, or to a cloud-based logging service • Docker 1.7 also added support to log to journald
  • 29. Sumo Logic Confidential Docker 1.8, 1.9 - Even More Log Drivers • Fluentd • GELF • AWS
  • 30. Sumo Logic Confidential Also in Docker 1.8 – Options For json-file • json-file still the default, still required for docker logs and /logs API • Long standing problem – will eventually fill up your disk • Folks have been using logrotate hacks… • Now, json-file log driver can be configured: • Basically, keep up to max-file files, roll current at max-size
  • 31. Sumo Logic Confidential Coming In Docker 1.9 – Log Tags • Many containers can share a single aggregator downstream the log driver • All this muxing creates a problem – which log from which container? • Basically, there is a loss of meta data • Log Tags enable to use of container meta data as part of each message • --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" • Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]: Hello from Docker.
  • 32. Sumo Logic Confidential Coming In Docker 1.9 – Log Tags • Many containers can share a single aggregator downstream the log driver • All this muxing creates a problem – which log from which container? • Basically, there is a loss of meta data • Log Tags enable to use of container meta data as part of each message • --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" • Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]: Hello from Docker.
  • 33. Sumo Logic Confidential Coming In Docker 1.9 – Log Tags • Many containers can share a single aggregator downstream the log driver • All this muxing creates a problem – which log from which container? • Basically, there is a loss of meta data • Log Tags enable to use of container meta data as part of each message • --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" • Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]: Hello from Docker.
  • 34. Sumo Logic Confidential Coming In Docker 1.9 – Log Tags • Many containers can share a single aggregator downstream the log driver • All this muxing creates a problem – which log from which container? • Basically, there is a loss of meta data • Log Tags enable to use of container meta data as part of each message • --log-opt tag="{{.ImageName}}/{{.Name}}/{{.ID}}" • Oct 13 18:33:19 play docker/hello-world/foobar/5790672ab6a0[9103]: Hello from Docker.
  • 35. Sumo Logic Confidential What Is Sumo Working On? • We have containerized our collectors – https://github.com/SumoLogic/sumologic-collector-docker – docker run -d -p 514:514 -p 514:514/udp --name="sumo-logic-collector" sumologic/collector:latest-syslog [Access ID] [Access key] – https://www.sumologic.com/2015/09/09/update-on-logging-with-docker/
  • 36. Sumo Logic Confidential What Is Sumo Working On? • We are working towards our vision of Comprehensive Monitoring – https://www.sumologic.com/2015/06/16/comprehensive-monitoring-for-docker-more-than-just-logs/ • We have released an initial App for Docker at DockerCon 2015