Behind the Scenes at Coolblue - Feb 2017

48
Behind the Scenes - Feb 2017 Pat Hermens [email protected]

Transcript of Behind the Scenes at Coolblue - Feb 2017

Page 1: Behind the Scenes at Coolblue - Feb 2017

Behind the Scenes - Feb 2017Pat Hermens [email protected]

Page 2: Behind the Scenes at Coolblue - Feb 2017
Page 3: Behind the Scenes at Coolblue - Feb 2017
Page 4: Behind the Scenes at Coolblue - Feb 2017

All the things.

Page 5: Behind the Scenes at Coolblue - Feb 2017

kibana

elasticsearch

beats logstash

Elastic Stack.

Page 6: Behind the Scenes at Coolblue - Feb 2017

Elastic Stack.

Kibana● “A visualisation tool that ties into Elastic Search”

● Why do we use it?○ It “just works” with the rest of the stack○ Visualisations and dashboards are “good enough” and getting better

Page 7: Behind the Scenes at Coolblue - Feb 2017

Elastic Stack.

Elastic Search● “A performant search engine & data store”

● Why do we use it?○ Great at storing large amounts of data, and ○ Fantastic at searching through it!

Page 8: Behind the Scenes at Coolblue - Feb 2017

Elastic Stack.

Beats● “It ships logs so you don’t have to”

● Why do we use it?○ Lots of machines○ Lots of environments○ Lots of moving parts○ Lots of legacy that we need to support (Thanks FileBeats!)

Page 9: Behind the Scenes at Coolblue - Feb 2017

Elastic Stack.

Logstash● “The entry-point into the Elastic Stack”

● Why do we use it?○ It splits up each log into a separate index ○ It enriches logs...

■ e.g.: Given an IP address, it can add city and country■ e.g.: Given a server name, it can add environment name■ HINT: Given a structured string, it can break it apart

Page 10: Behind the Scenes at Coolblue - Feb 2017

● What is it/what was the predecessor?

● When was it first released?

● Why do we use it?

Log4Net.

Page 11: Behind the Scenes at Coolblue - Feb 2017

Other handy tools.

“structured log visualiser” “in-memory data store”

Page 12: Behind the Scenes at Coolblue - Feb 2017
Page 13: Behind the Scenes at Coolblue - Feb 2017

More tooling.

Page 14: Behind the Scenes at Coolblue - Feb 2017

“Seq is the fastest way for development teams to carry the benefits of structured logging from development through to production.”

More tooling.

Page 15: Behind the Scenes at Coolblue - Feb 2017

+

More tooling.

Page 16: Behind the Scenes at Coolblue - Feb 2017
Page 17: Behind the Scenes at Coolblue - Feb 2017
Page 18: Behind the Scenes at Coolblue - Feb 2017
Page 19: Behind the Scenes at Coolblue - Feb 2017

Nightmares.

Page 20: Behind the Scenes at Coolblue - Feb 2017

SMTPAppender.

Page 21: Behind the Scenes at Coolblue - Feb 2017
Page 22: Behind the Scenes at Coolblue - Feb 2017

PatsCustomAppender.

Page 23: Behind the Scenes at Coolblue - Feb 2017
Page 24: Behind the Scenes at Coolblue - Feb 2017

+

More tooling.

Page 25: Behind the Scenes at Coolblue - Feb 2017
Page 26: Behind the Scenes at Coolblue - Feb 2017

+

More tooling.

+

Page 27: Behind the Scenes at Coolblue - Feb 2017

So much tooling.

Page 28: Behind the Scenes at Coolblue - Feb 2017

So much tooling.

Page 29: Behind the Scenes at Coolblue - Feb 2017

In Production.

Page 30: Behind the Scenes at Coolblue - Feb 2017

For our demo.

Page 31: Behind the Scenes at Coolblue - Feb 2017
Page 32: Behind the Scenes at Coolblue - Feb 2017

Nightmares.

Page 33: Behind the Scenes at Coolblue - Feb 2017

Nightmares.

Page 34: Behind the Scenes at Coolblue - Feb 2017
Page 35: Behind the Scenes at Coolblue - Feb 2017

Monitoring.

Page 36: Behind the Scenes at Coolblue - Feb 2017

Yes, monitoring.

Page 37: Behind the Scenes at Coolblue - Feb 2017

Disclaimer.

Page 38: Behind the Scenes at Coolblue - Feb 2017
Page 39: Behind the Scenes at Coolblue - Feb 2017

The shiniest.

Page 40: Behind the Scenes at Coolblue - Feb 2017

All the new things.

Page 41: Behind the Scenes at Coolblue - Feb 2017

Conclusions.

Page 42: Behind the Scenes at Coolblue - Feb 2017

Conclusions.

Page 43: Behind the Scenes at Coolblue - Feb 2017

Conclusions.

Page 44: Behind the Scenes at Coolblue - Feb 2017

Conclusions.

Page 45: Behind the Scenes at Coolblue - Feb 2017

Conclusions.

Page 46: Behind the Scenes at Coolblue - Feb 2017

● Documentation & code from tonight:○ https://github.com/phermens-coolblue/bts-2017-february/

● Seq running on a Windows Server Core image:○ https://github.com/phermens-coolblue/bts-2017-february/tree/master/docker/seq

○ ...or https://hub.docker.com/r/pheonix25/servercore-seq/

● ELK & Redis running on Docker:○ https://github.com/phermens-coolblue/bts-2017-february/tree/master/docker/elk

● Coolblue DevBlog: ○ http://devblog.coolblue.nl/

● Slides (and possibly video) will be available soon:

○ @phermens, or https://hermens.com.au

Links.

Page 47: Behind the Scenes at Coolblue - Feb 2017
Page 48: Behind the Scenes at Coolblue - Feb 2017

Behind the Scenes - Feb 2017Pat Hermens [email protected]