54
How to win skeptics to log aggregation using Vagrant and ELK London DevOps, 16th December 2014 #londondevops

How to win skeptics to aggregated logging using Vagrant and ELK

Embed Size (px)

Citation preview

Page 1: How to win skeptics to aggregated logging using Vagrant and ELK

How to win skeptics to log aggregation using Vagrant

and ELK

London DevOps, 16th December 2014

#londondevops

Page 2: How to win skeptics to aggregated logging using Vagrant and ELK

Ease of spinning up ELK box Assume you can install Virtualbox, Vagrant & Git Use Canned / Artificial data feeding log entries

Page 3: How to win skeptics to aggregated logging using Vagrant and ELK

Rob Thatcher

•  16+ years’ systems infrastructure & operations experience

•  Systems, networks & operations •  Finance tech •  Saas Migrations •  Team dynamics

@robtthatcher

Page 4: How to win skeptics to aggregated logging using Vagrant and ELK

‘Cloud’ changes the way we must�design, deliver, and operate�

our software systems

Page 5: How to win skeptics to aggregated logging using Vagrant and ELK

Recent Work

Education

UK legal Charitable Finance Tourism

Online betting

Page 6: How to win skeptics to aggregated logging using Vagrant and ELK

So why are we here?

We believe… (in aggregated logging)

ELK with Vagrant rocks...

Page 7: How to win skeptics to aggregated logging using Vagrant and ELK

Winning skeptics to log aggregation...

Page 8: How to win skeptics to aggregated logging using Vagrant and ELK

What is Log Aggregation?

Page 9: How to win skeptics to aggregated logging using Vagrant and ELK
Page 10: How to win skeptics to aggregated logging using Vagrant and ELK
Page 11: How to win skeptics to aggregated logging using Vagrant and ELK
Page 12: How to win skeptics to aggregated logging using Vagrant and ELK
Page 13: How to win skeptics to aggregated logging using Vagrant and ELK

What is ELK?

Page 14: How to win skeptics to aggregated logging using Vagrant and ELK
Page 15: How to win skeptics to aggregated logging using Vagrant and ELK

Elasticsearch, Logstash, Kibana

Page 16: How to win skeptics to aggregated logging using Vagrant and ELK

Why?

How?

What?

Page 17: How to win skeptics to aggregated logging using Vagrant and ELK

Why do log aggregation?

Page 18: How to win skeptics to aggregated logging using Vagrant and ELK

Collaboration

Visibility

CSI

Page 19: How to win skeptics to aggregated logging using Vagrant and ELK

A software fairy tale…

Page 20: How to win skeptics to aggregated logging using Vagrant and ELK

There was a company of developers brave and true, built their product and shipped when due (just)..

Page 21: How to win skeptics to aggregated logging using Vagrant and ELK

Of their product they were proud, but they soon saw it wouldn't work in the cloud..

Page 22: How to win skeptics to aggregated logging using Vagrant and ELK

The long march to Saas well underway, quite soon, they asked 'Why does deployment take more than a day?'

Page 23: How to win skeptics to aggregated logging using Vagrant and ELK

Manual installs, no puppet, chef, or dependency tree, a giant tarball was all the Ops guy could see… Many components interacting like free, no combined logging allowed any to see...

Page 24: How to win skeptics to aggregated logging using Vagrant and ELK

Not a fairy tale...

Born from experience, helping Organisations fix Ops and Software Infrastructure.

Page 25: How to win skeptics to aggregated logging using Vagrant and ELK

Multi-layer Architecture Multiple live / production versions

No Ops team No shared tools

No application logs

Page 26: How to win skeptics to aggregated logging using Vagrant and ELK

Single deployment took around 1 week, sometimes more.

Less than 1 release per month

Page 27: How to win skeptics to aggregated logging using Vagrant and ELK
Page 28: How to win skeptics to aggregated logging using Vagrant and ELK

Why?

How?

What?

Page 29: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Dev

Application components

Messaging events Streams

Etc..

Page 30: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Dev

Logging to same location can help with...

Page 31: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Dev

Improve debugging Look into performance analysis

Understanding Interop of components

Page 32: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Ops

Routers, Firewalls Web servers Hypervisors

Page 33: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Ops

All logging to same location helps...

Page 34: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Ops

Faster event correlation Better unified view across components

Visibility of events over time

Page 35: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Shared!

See problems in system, and app context

Operations gain insight into application behaviour

Common Tools across Dev and Ops

Page 36: How to win skeptics to aggregated logging using Vagrant and ELK

Why? - Shared!

ENABLE Collaboration

ENABLE Visibility ENABLE CSI

Page 37: How to win skeptics to aggregated logging using Vagrant and ELK

ENABLE CONTINUAL SERVICE IMPROVEMENT

Page 38: How to win skeptics to aggregated logging using Vagrant and ELK
Page 39: How to win skeptics to aggregated logging using Vagrant and ELK

How …..?

Page 40: How to win skeptics to aggregated logging using Vagrant and ELK

How - Components

Vagrant – As Box provisioner with Virtualbox

Elasticsearch – Search engine

Logstash – Log Database

Kibana – Make it pretty & UI

Page 41: How to win skeptics to aggregated logging using Vagrant and ELK
Page 42: How to win skeptics to aggregated logging using Vagrant and ELK

Vagrant

Create & configure lightweight, reproducible, portable environments

Manage start and stop of VM + 'provisioning layer’

Hooks into AWS and Azure Lightweight for Linux boxes

Page 43: How to win skeptics to aggregated logging using Vagrant and ELK

ELK (Elasticsearch, Logstash, Kibana)

Elasticsearch provides powerful query interface Logstash for storing incoming log messages

Kibana makes the whole thing pretty

Simple searches powered by good regex Built for Simplicity and Ease of use

Page 44: How to win skeptics to aggregated logging using Vagrant and ELK

What – The Demonstrator

Fully installed ELK machine

Configured to listen to its own nginx logs, and bundled with a trivial log generator script.

Using the ELK interface adds more logs entries.

Page 45: How to win skeptics to aggregated logging using Vagrant and ELK

Can be used “Pre-canned” to allow offline demo (packages are cached are first run)

Live from the net, takes about 5 minutes

Page 46: How to win skeptics to aggregated logging using Vagrant and ELK

Config and scripts available via Github https://github.com/SkeltonThatcher/velk-demo

Demo the thing.....

Page 47: How to win skeptics to aggregated logging using Vagrant and ELK
Page 48: How to win skeptics to aggregated logging using Vagrant and ELK
Page 49: How to win skeptics to aggregated logging using Vagrant and ELK
Page 50: How to win skeptics to aggregated logging using Vagrant and ELK
Page 51: How to win skeptics to aggregated logging using Vagrant and ELK

What? Very fast ELK deployment

PoC demonstrator A tool which Supports a collaborative approach

A powerful searchable archive of logging

Proven persuasion power (of Dev and managers)

Page 52: How to win skeptics to aggregated logging using Vagrant and ELK

As simple as

$git clone https://github.com/SkeltonThatcher/velk-demo.git $cd velk-demo

$vagrant up

Page 53: How to win skeptics to aggregated logging using Vagrant and ELK

Why do Log Aggregation?

ENABLE & INCREASE

Collaboration Visibility

Continual Service Improvement

Page 54: How to win skeptics to aggregated logging using Vagrant and ELK

http://skeltonthatcher.com/ [email protected]

@SkeltonThatcher +44 (0)20 8242 4103