osdc: gergely nagy: monitoring with syslog-ng, riemann and kibana

38
Monitoring with syslog-ng, Riemann and Kibana @algernoone @balabit

Upload: netways

Post on 02-Jul-2015

527 views

Category:

Software


0 download

DESCRIPTION

In any data center, one will have a lot of machines, and even more applications, plenty of them legacy applications with little to no built-in monitoring capabilities. But even when monitoring is built in, quite often, it just provides basic building blocks. In this talk, it will be shown how to tie a syslog-ng based logging solution to the Riemann monitoring system, and use Kibana to make sense of both logging and monitoring data. The presentation will suggest solutions for extracting data from various applications, ways to transform them into useful metrics, and will - of course - also touch the subject of what exactly useful metrics are to begin with. A live demo of all things discussed will be shown at the end.

TRANSCRIPT

Page 1: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring with syslog-ng, Riemann and Kibana

@algernoone @balabit

Page 2: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

Page 3: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

Page 4: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

● Developed since 1998, LGPL + GPL

Page 5: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

● Developed since 1998, LGPL + GPL

– (Commercial offering since 2007)

Page 6: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

● Developed since 1998, LGPL + GPL

– (Commercial offering since 2007)● Collects, parses, filters, transforms, transfers events

Page 7: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

● Developed since 1998, LGPL + GPL

– (Commercial offering since 2007)● Collects, parses, filters, transforms, transfers events

● Wide variety of plugins

Page 8: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

syslog-ng

● Open source event processor and swiss army knife

● Developed since 1998, LGPL + GPL

– (Commercial offering since 2007)● Collects, parses, filters, transforms, transfers events

● Wide variety of plugins

● A sizable, helpful and very inclusive community

Page 9: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Riemann

Page 10: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Riemann

● Riemann monitors distributed systems

Page 11: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Riemann

● Riemann monitors distributed systems

● Event aggregator with a powerful stream processing language

Page 12: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Riemann

● Riemann monitors distributed systems

● Event aggregator with a powerful stream processing language

● Provides a low-latency, transient shared state

Page 13: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Kibana

Page 14: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Kibana

● Visualize logs and time-stamped data

Page 15: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Kibana

● Visualize logs and time-stamped data

● Powerful search syntax

Page 16: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Kibana

● Visualize logs and time-stamped data

● Powerful search syntax

● Flexible, powerful, yet intuitive interface

Page 17: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Kibana

Page 18: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

Page 19: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

What

Page 20: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● System state

What

Page 21: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● System state

● Application state

What

Page 22: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● System state

● Application state

● Exceptions

What

Page 23: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● System state

● Application state

● Exceptions

● Activity

What

Page 24: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

Tools

Page 25: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● Nagios

● Collectd

● Munin

Tools

Page 26: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring

● Nagios

● Collectd

● Munin

● Riemann

Tools

Page 27: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

Page 28: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

Page 29: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

● Persisting application state

Page 30: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

● Persisting application state

● Format is usually application specific

Page 31: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

● Persisting application state

● Format is usually application specific

● Structured vs unstructured

Page 32: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Logging

● Persisting application state

● Format is usually application specific

● Structured vs unstructured

● Great source for monitoring too!

Page 33: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring + Logging

Page 34: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring + Logging

● What do we already have?

Page 35: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring + Logging

● What do we already have?

● What can we add?

Page 36: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Monitoring + Logging

● What do we already have?

● What can we add?

● How will we benefit from all of this?

Page 37: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Q & A

Page 38: OSDC: Gergely Nagy: Monitoring with syslog-ng, Riemann and Kibana

Thanks!

● http://www.syslog-ng.org/

● https://github.com/balabit/syslog-ng-incubator

● https://talien.blogs.balabit.com/

● https://algernon.blogs.balabit.com/