the logs you're looking for Alicja Kwasniewska, Intel Eric - - PowerPoint PPT Presentation

the logs
SMART_READER_LITE
LIVE PREVIEW

the logs you're looking for Alicja Kwasniewska, Intel Eric - - PowerPoint PPT Presentation

These aren't the logs you're looking for Alicja Kwasniewska, Intel Eric Lemoine, Mirantis Michal Jastrzebski, Intel Alicja Kwasniewska Eric Lemoine Michal Jastrzebski Agenda Logging Central Hacking Elk or Kolla in logging Demo


slide-1
SLIDE 1

These aren't

the logs

you're looking for

Alicja Kwasniewska, Intel Eric Lemoine, Mirantis Michal Jastrzebski, Intel

slide-2
SLIDE 2

Alicja Kwasniewska Eric Lemoine Michal Jastrzebski

slide-3
SLIDE 3

Agenda

Kolla Logging in dockers Hacking Rsyslog Central logging service Elk or Ehk? Demo

slide-4
SLIDE 4

Kolla

Docker containers Ansible playbooks

slide-5
SLIDE 5

Kolla

  • Production-ready Docker containers and deployment tools for
  • perating OpenStack clouds
  • Both out of the box configuration and possibility for complete

customization

  • Images built in the kollaglue namespace for every tagged

release, but you can also build images on your own Docker containers Deployment tools Out of the box configuration Kollaglue Customization

slide-6
SLIDE 6

Logging in

docker containers

slide-7
SLIDE 7

Docker logs

  • What? Anything that is written out to the container’s standard output/error
  • Logging capabilities available in the Docker are exposed as drivers

Default

  • How to get path to this file? docker inspect -f "{{.LogPath}}" containerName
  • The docker logs command retrieves logs present at the time of execution.

NOTE: available only for containers with json-file and journald logging drivers

json syslog journald gelf fluentd

slide-8
SLIDE 8

Hacking

rsyslog

slide-9
SLIDE 9

Previous solution based on rsyslog

  • Hacky
  • Shared /dev/log
  • Not meant for containers
  • New versions of docker breaks
  • Syslog doesn’t work well with tracebacks
  • Removed in both Liberty and Mitaka
slide-10
SLIDE 10

Central logging service

advantages

“One Ring to rule them all, One Ring to find them...”

slide-11
SLIDE 11

Which node? Which container? Where should I look first?

slide-12
SLIDE 12

No need to search many places ! → data stored in one location and accessed from single interface

slide-13
SLIDE 13

One more second and I will find the right place in one of the 10000+ lines...

“Developer looking at production logs after a regression with downtime”

  • il canvas, circa 1580; source: http://classicprogrammerpaintings.tumblr.com
slide-14
SLIDE 14

No need to search for one line in million ! → interface provides filtering options and visual representation of data using graphs and charts

slide-15
SLIDE 15

Kolla Central logging service

New feature in Mitaka

slide-16
SLIDE 16

How it works?

Heka

Feed data

Elasticsearch

View

Kibana

/var/lib/ kolla/... Search Interact

Heka

F e e d d a t a /var/lib/k

  • lla/...

Heka

Feed data /var/lib/k

  • lla/...
slide-17
SLIDE 17

Heka

Unified data processing

slide-18
SLIDE 18

Introduction to Heka

Stream processing software

  • Open source
  • Developed by Mozilla
  • Used in production (by Mozilla)
  • Written in Go
  • http://hekad.readthedocs.org
slide-19
SLIDE 19

Why Heka?

→“Unified Data Processing” One tool for all the data:

  • Ops data/metrics
  • Business data
  • Logging output
  • Error

reports/tracebacks

Ops data/ metrics Business data Logging

  • utput

Error reports/ tracebacks

slide-20
SLIDE 20

Heka Pipeline

Plugins at each stage of the pipeline

slide-21
SLIDE 21

Heka Highlights

  • Lightweight
  • Flexible
  • Configurable
  • Easily and safely extendable

Lightweight Flexible Configurable Easily and safely extendable

slide-22
SLIDE 22

ELK or EHK?

slide-23
SLIDE 23

Logstash vs Heka

Why did we choose Heka over Logstash?

  • Avoid running a JVM on each node
  • Heka is faster and more lightweight*
  • Heka is very flexible (plugins defined w/ code)

* https://github.com/elemoine/heka-logstash-comparison

slide-24
SLIDE 24

→ EHK

slide-25
SLIDE 25

Elasticsearch

Open-source text search and analytics engine

slide-26
SLIDE 26

Introduction to Elasticsearch

  • Open source product from Elastic group - https://github.

com/elastic/elasticsearch

  • Highly-scalable full-text search and analytics engine
  • Used by applications with complex search requirements
  • Written in Java
slide-27
SLIDE 27

Elasticsearch Highlights

Highly Scalable Highly Available RESTful API Full-Text Search Document-

  • riented
slide-28
SLIDE 28

Kibana

Open-source analytics and visualization platform

slide-29
SLIDE 29

Introduction to Kibana

  • Open source product from Elastic group - https://github.

com/elastic/kibana

  • Written mainly in JavaScript, comes with Node.js server app
  • Server component has a built-in proxy to Elasticsearch (designed to

work with Elasticsearch)

slide-30
SLIDE 30

Kibana concepts

  • Allows to search, view, and interact with data stored in Elasticsearch indices
  • Possibility to analyse and visualize data in a variety of charts, tables, and

maps Search Interact View Visualize Analyse

slide-31
SLIDE 31
slide-32
SLIDE 32
slide-33
SLIDE 33

Kibana - authentication

Elastic Shield - provides security for entire stack, including Kibana plugin for session support and login screen, but requires a license… Nginx - use it as proxy with simple auth mechanism for Kibana HAProxy - add HTTP Basic authentication with ACL that uses the http_auth criterion and http-request auth rule Shield From Elastic Group Nginx HAProxy HTTP Basic authentication with ACL

slide-34
SLIDE 34

Deploy

EHK

with

Kolla

slide-35
SLIDE 35

3 easy steps

Build images with one command Adapt configuration files and enable central logging Deploy Kolla with one command

For details please watch webinar presented by Steven Dake - link provided at the last slide

slide-36
SLIDE 36

Demo →

slide-37
SLIDE 37

Thank you for your attention

Alicja Kwasniewska alicja.kwasniewska@intel.com Eric Lemoine elemoine@mirantis.com Michal Jastrzebski michal.jastrzebski@intel.com

Irc: #openstack-kolla Webinar: https://vimeopro.com/midokura/345kl392