SlideShare a Scribd company logo
Logmonitoring with ELK and Icinga 2
2016-02-16 | Icinga Camp San Francisco
Thomas Widhalm | NETWAYS GmbH
About me
Thomas Widhalm
Senior Consultant
@NETWAYS since 2013
"Elk Head" - ELK trainings, consulting, workshops
Icinga (2) - consulting, trainings, author
1 Introducing: ELK Stack
ELK Stack
+ + =
Consists of:
Elasticsearch
Logstash
Kibana
ELK Stack
Does:
Forward log events from various sources to various targets
Collects log events in a centralised storage
Parses and enriches logs
Provide search interface for log events
Create graphs from logged information
A lot more
All this with all sorts of events not just logs
Elasticsearch
Stores Events
Is elastic
HA / LB Cluster
Robust
Elasticsearch
NoSQL Search Server based on Apache Lucene
RESTful Interface
Easy to set up
Redundant per default
Logstash
Moves Events from sources to targets
Parses and splits events into fields
Enriches and transforms events
Drops unwanted events
HA/ELK ELK Stack
Logstash
Transport
Many sources
Syslog
Windows Eventlog
Log4j
Generic (tcp/udpPort, exec)
E-Mail
Jabber
JDBC
Twitter
Lots more
Logstash
Transport
Many targets
Elasticsearch
Icinga (2)
Graphite
E-Mail
Jabber
IRC
JIRA
Lots more
Logstash
Parsing and splitting
By Regex
By included Regex Pattern (SYSLOGLINE, IPV6,...)
Key-Value
CSV
http Useragent
Syslog Priority
Lots more
Logstash
Before:
192.168.1.10 – guest [04/Dec/2013:08:54:23 +0100] "POST /icinga-web/web/api/
jsonHTTP/1.1" 200 788 "https://icinga-private.demo.netways.de/icinga-web/
modules/web/portal" "Mozilla/5.0 (X11; Linux x86_64; rv:22.0)"
After:
"http_clientip" : "192.168.1.10",
"http_ident" : "-",
"http_auth" : "guest",
"timestamp" : "04/Dec/2013:08:54:23 +0100",
"http_verb" : "POST",
"http_request" : "/icinga-web/web/api/json",
"http_httpversion" : "1.1",
"http_response" : "200",
"http_bytes" : "788",
"http_referrer" : "https://icinga-private.demo.netways.de/icinga-web/...",
"http_agent" : "Mozilla/5.0 (X11; Linux x86_64; rv:22.0)"
Logstash
Enrich and transform
Transform timestamps
DNS resolution
GeoIP resolution
Anonymize or encrypt
sflow / netflow
Lots more
Logstash
Custom Plugins
Plugins written in (j)Ruby
It's easy to build your own (if you know Ruby)
Contributions are welcome
Kibana
Webinterface for Queries and Graphs
Interactive searches
Dashboards with visualizations / graphs
Interactive filters for queries and dashboards
Kibana
Query with Lucene Query Syntax
Graphs from field values
Uses filters and aggregations within Elasticsearch ->
Scales with Elasticsearch
HA/ELK ELK Stack
Remote Shipper
2 Why Logmonitoring?
Why
Not all information is available for active monitoring
Catch-all approach
Why Icinga 2
Open Source / Free Software
Very modular and ready to be enhanced with 3rd party tools
Proven solution for alerting
One more reason ->
Icinga 2
Gives you all a reason to learn German.
Logmanagement with Icinga2 and ELK
Why ELK
"Logstash" is too long a word on the slides - writing "ELK" is more economic
Logstash is great at forwarding messages from different sources
Logstash can parse messages
Elasticsearch and Kibana can be used for validating rules
3 Connecting ELK to Icinga
Icinga
Problems of every Logmonitoring
Not ELK specific
Lots of different log formats
Not every message occurs regularly
Missing information
Barely any "OK" messages
Writing lots of rules
Icinga
Solution to missing "OK" events
Solution A: Automatic recovery after some time
Solution B: List all events which qualify as alert and acknowledge each and every one
Icinga
A: Automatic OK
Logstash n-wordOutput to Icinga
Set to OK with check_dummy
Alerts are sent a very short time after the logevent
Send alerts after n logevents which match a filter or send an alert on every match
Icinga
B: list all events and tick them off
Currently only prototype
Integration in Icinga Web 2
Queries Elasticsearch
Acknowledges Events in Elasticsearch
Takes more time to send alert but gives better overview over events
Service is not OK before someone acknowledges the event
Icinga
What you need
Match Events to Host and Service
Available in event text
Transforming event information (e.g. DNS resolution)
Metahost / Metaservice
Decide wether an event should trigger an alert
By Severity of message
By regex matching on event text
Contact
NETWAYS GmbH
Deutschherrnstrasse 15-19, 90429 Nürnberg
Tel: +49 911 92885-0
Fax: +49 911 92885-77
Email: info@netways.de
Website: www.netways.de
Twitter: twitter.com/netways
Facebook: facebook.com/netways
Blog: blog.netways.de
Contakt
Thomas Widhalm
Email: thomas.widhalm@netways.de
Twitter: @widhalmt
GnuPG: 6265BAE6 / A84CB603
Threema: H7AV7D33 / Telegram: widhalmt
Jabber: widhalmt@widhalm.or.at
THANK YOU

More Related Content

PDF
Anatomija ns
PDF
Monitoring with Icinga2 at Adobe
PDF
Performance Monitoring with Icinga2, Graphite und Grafana
PPTX
Log Monitoring Simplified - Get the best out of Graylog2 & Icinga 2
PPTX
Introduction into Icinga
PDF
Icinga Web 2 is more
PPTX
Monitor OpenStack Environments from the bottom up and front to back
PPTX
Afpified Monitoring with Icinga2
Anatomija ns
Monitoring with Icinga2 at Adobe
Performance Monitoring with Icinga2, Graphite und Grafana
Log Monitoring Simplified - Get the best out of Graylog2 & Icinga 2
Introduction into Icinga
Icinga Web 2 is more
Monitor OpenStack Environments from the bottom up and front to back
Afpified Monitoring with Icinga2

Viewers also liked (18)

PDF
Interactive learning analytics dashboards with ELK (Elasticsearch Logstash Ki...
PDF
Monitoring the ELK stack using Zabbix and Grafana (Dennis Kanbier / 26-11-2015)
PDF
Icinga Camp Berlin 2017 - End user experience monitoring of network applications
PPTX
Attack monitoring using ElasticSearch Logstash and Kibana
PDF
Elastic Stack: Grundlagen der zentralen Logdatenverwaltung (Webinar vom 15. A...
PPTX
Icinga2
ODP
Automating Monitoring with Puppet
PDF
Aaron Mildenstein - Using Logstash with Zabbix
PPTX
Automating Zabbix with Puppet (Werner Dijkerman / 26-11-2015)
PDF
Zabbixをもっと便利に!安全に!
PPTX
Analise NetFlow in Real Time
PDF
Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016
ODP
Eng. Johor Alam Presentation Slide on icinga 2
PDF
IT Infrastructure Monitoring Strategies in Healthcare
PDF
"How about no grep and zabbix?". ELK based alerts and metrics.
PDF
OpenITSM - IT Service Management with Open Source
PPTX
Icinga Camp Berlin 2017 - Icinga Web 2 - How to Write Modules
PPTX
Icinga Camp Berlin 2017 - Welcome & State of Icinga
Interactive learning analytics dashboards with ELK (Elasticsearch Logstash Ki...
Monitoring the ELK stack using Zabbix and Grafana (Dennis Kanbier / 26-11-2015)
Icinga Camp Berlin 2017 - End user experience monitoring of network applications
Attack monitoring using ElasticSearch Logstash and Kibana
Elastic Stack: Grundlagen der zentralen Logdatenverwaltung (Webinar vom 15. A...
Icinga2
Automating Monitoring with Puppet
Aaron Mildenstein - Using Logstash with Zabbix
Automating Zabbix with Puppet (Werner Dijkerman / 26-11-2015)
Zabbixをもっと便利に!安全に!
Analise NetFlow in Real Time
Erik Skytthe - Monitoring Mesos, Docker, Containers with Zabbix | ZabConf2016
Eng. Johor Alam Presentation Slide on icinga 2
IT Infrastructure Monitoring Strategies in Healthcare
"How about no grep and zabbix?". ELK based alerts and metrics.
OpenITSM - IT Service Management with Open Source
Icinga Camp Berlin 2017 - Icinga Web 2 - How to Write Modules
Icinga Camp Berlin 2017 - Welcome & State of Icinga
Ad

Similar to Logmanagement with Icinga2 and ELK (20)

PDF
2015 03-16-elk at-bsides
PDF
elk_stack_alexander_szalonnas
PPTX
Logging using ELK Stack for Microservices
PPTX
DevOpsDays Amsterdam 2016 workshop
PDF
Log analysis with the elk stack
PPTX
Elk ruminating on logs
PPTX
NATE-Central-Log
PPTX
Apache kafka
PDF
Observability from the Home
PDF
Elk stack @inbot
PDF
Security monitoring log management-describe logstash,kibana,elastic slidshare
PDF
ELK stack introduction
PPTX
Centralized Logging System Using ELK Stack
PPTX
Asynchronous micro-services and the unified log
PPTX
Liveperson DLD 2015
PPTX
Responding to extended events in near real time
PPTX
Splunk HTTP Event Collector
PPTX
Scaling an ELK stack at bol.com
PPTX
ETL in Playbuzz
PPTX
ELK Ruminating on Logs (Zendcon 2016)
2015 03-16-elk at-bsides
elk_stack_alexander_szalonnas
Logging using ELK Stack for Microservices
DevOpsDays Amsterdam 2016 workshop
Log analysis with the elk stack
Elk ruminating on logs
NATE-Central-Log
Apache kafka
Observability from the Home
Elk stack @inbot
Security monitoring log management-describe logstash,kibana,elastic slidshare
ELK stack introduction
Centralized Logging System Using ELK Stack
Asynchronous micro-services and the unified log
Liveperson DLD 2015
Responding to extended events in near real time
Splunk HTTP Event Collector
Scaling an ELK stack at bol.com
ETL in Playbuzz
ELK Ruminating on Logs (Zendcon 2016)
Ad

More from Icinga (20)

PDF
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023
PDF
Extending Icinga Web with Modules: powerful, smart and easily created - Icing...
PDF
Infrastructure Monitoring for Cloud Native Enterprises - Icinga Camp Milan 2023
PDF
Incident management: Best industry practices your team should know - Icinga C...
PDF
Monitoring Cooling Units in a pharmaceutical GxP regulated environment - Icin...
PDF
SNMP Monitoring at scale - Icinga Camp Milan 2023
PPTX
Monitoring Kubernetes with Icinga - Icinga Camp Milan 2023
PPTX
Current State of Icinga - Icinga Camp Milan 2023
PDF
Efficient IT operations using monitoring systems and standardized tools - Ici...
PPTX
Tornado Complex Event Processing Framework for Icinga - Icinga Camp Zurich 2019
PDF
Signalilo: Visualizing Prometheus alerts in Icinga2 - Icinga Camp Zurich 2019
PDF
Moving from Icinga 1 to Icinga 2 + Director - Icinga Camp Zurich 2019
PDF
Icinga Director and vSphereDB - how they play together - Icinga Camp Zurich 2019
PDF
Current State of Icinga - Icinga Camp Zurich 2019
PDF
NetEye 4 based on Icinga 2 - Icinga Camp Milan 2019
PDF
Integrating Icinga 2 and ntopng - Icinga Camp Milan 2019
PDF
DevOps monitoring: Best Practices using OpenShift combined with Icinga & Big ...
PPTX
Current State of Icinga - Icinga Camp Milan 2019
PPTX
Best of Icinga Modules - Icinga Camp Milan 2019
PPTX
hallenges of Monitoring Big Infrastructure - Icinga Camp Milan 2019
Upgrading Incident Management with Icinga - Icinga Camp Milan 2023
Extending Icinga Web with Modules: powerful, smart and easily created - Icing...
Infrastructure Monitoring for Cloud Native Enterprises - Icinga Camp Milan 2023
Incident management: Best industry practices your team should know - Icinga C...
Monitoring Cooling Units in a pharmaceutical GxP regulated environment - Icin...
SNMP Monitoring at scale - Icinga Camp Milan 2023
Monitoring Kubernetes with Icinga - Icinga Camp Milan 2023
Current State of Icinga - Icinga Camp Milan 2023
Efficient IT operations using monitoring systems and standardized tools - Ici...
Tornado Complex Event Processing Framework for Icinga - Icinga Camp Zurich 2019
Signalilo: Visualizing Prometheus alerts in Icinga2 - Icinga Camp Zurich 2019
Moving from Icinga 1 to Icinga 2 + Director - Icinga Camp Zurich 2019
Icinga Director and vSphereDB - how they play together - Icinga Camp Zurich 2019
Current State of Icinga - Icinga Camp Zurich 2019
NetEye 4 based on Icinga 2 - Icinga Camp Milan 2019
Integrating Icinga 2 and ntopng - Icinga Camp Milan 2019
DevOps monitoring: Best Practices using OpenShift combined with Icinga & Big ...
Current State of Icinga - Icinga Camp Milan 2019
Best of Icinga Modules - Icinga Camp Milan 2019
hallenges of Monitoring Big Infrastructure - Icinga Camp Milan 2019

Recently uploaded (20)

PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
August Patch Tuesday
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
TLE Review Electricity (Electricity).pptx
PPTX
Tartificialntelligence_presentation.pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
A Presentation on Touch Screen Technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Heart disease approach using modified random forest and particle swarm optimi...
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Enhancing emotion recognition model for a student engagement use case through...
SOPHOS-XG Firewall Administrator PPT.pptx
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
A comparative study of natural language inference in Swahili using monolingua...
DP Operators-handbook-extract for the Mautical Institute
August Patch Tuesday
Unlocking AI with Model Context Protocol (MCP)
Group 1 Presentation -Planning and Decision Making .pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Hindi spoken digit analysis for native and non-native speakers
TLE Review Electricity (Electricity).pptx
Tartificialntelligence_presentation.pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Chapter 5: Probability Theory and Statistics
A Presentation on Touch Screen Technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
From MVP to Full-Scale Product A Startup’s Software Journey.pdf

Logmanagement with Icinga2 and ELK