SlideShare a Scribd company logo
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Icinga 2
and Logs
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Thomas Widhalm ( @widhalmt )
• Lead Support Engineer @ Netways
• Specialised in Icinga and Elastic Stack
• Collector of Star Wars Lego and
Camo patterns
About me
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
About me
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Logs
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Every IT infrastructure has lots of them
• Many admins don‘t really care
• Focused view of one box
• Filters and parsing on the fly
– Different levels of knowledge
– Rerun all filters every time you change something
• Full harddisks or now long time storage
• Only used when something bad happened
Logs
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Different kinds of logs
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Logs of monitored objects
• Logs of Icinga
• Logs of alerts and notifications
• Logs of logmanagement
Logs and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Give more thorough insight
• Allow monitoring of otherwise inaccessible objects
• Different ways of monitoring
– Plugin / Agent
– Logmanagement
Logs of monitored objects
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Show how Icinga is doing
• Help with monitoring and debugging
• Very useful for post mortems and support tickets
Logs of Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Part of Icinga logs
• Can be used for SLA / umbrella monitoring
• Basically show how monitored objects are doing
Logs of alerts and notifications
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Often can‘t be processed by logmanagement itself (Loops!)
• Show problems in logmanagement infrastructure
Logs of logmanagement
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Toolset
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• No native way of monitoring logs
• Plugins for monitoring logs
– Statusmonitoring, no searching
– Only single hosts
Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Collects Logdata from many sources
• Stores data in a central database
• Monitoring addon
– Not free
– Cumbersome configuration
• Connectors to many receivers
– Cumbersome configuration
– All but flexible
Elastic Stack
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Search Server (based on Apache Lucene)
• Elastic, highly available, load balanced very resilient
• Extremely scalable
• REST-API for communication
Components of Elastic Stack: Elasticsearch
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Receive Logs from many sources
– Syslog
– Beats (Agents)
• Send to many targets
– Elasticsearch
– Icinga
• Parse, disect, transform, filter, enrich Logs
Components of Elastic Stack: Logstash
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Webinterface for Elastic Stack
• Search and filter logs
• Build Dashboards for Screens or interactive drill drown
Components of Elastic Stack: Kibana
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Lightweight agents
• Collect Filelogs (syslog) or Event Log
• More specialised beats available
– Icingabeat
– MySQL-beat
– Redisbeat
Components of Elastic Stack: Beats
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Common problems
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Hardly any „problem event“ has a corresponding „ok again“ event
• Hearing nothing from your hosts:
– Everything is fine
– Too dead to talk
End of the world or end of the problem?
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Automatically return to „OK“ after a while
– Send notifications
– Enrich with active monitoring
• Have someone check
– Can create lots of work
Best effort
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Approaches
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Use Elastic Stack to collect and store Logmessages
• Use Icinga for alerting
• Different ways of connecting
Combined forces
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Cumbersome configuration
– Still easier than full blown logmanagement?
• Not part of monitoring plugins
• Independent from everything else
– Use to avoid loops
– Monitor logmanagement infrastructure
Ye goode olde check_logfiles
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Full blown logmanagement solution
• Several ways of ingestion
– Reads logs from filesystem
– Receives logs from „icingabeat“ agent
• Several ways of monitoring
– „icinga“ output to API
– Icinga Web module „elasticsearch“
Elastic Stack & Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
$ yum install java-1.8.0-openjdk-devel
$ /usr/share/logstash/bin/logstash-plugin install 
logstash-output-icinga
Elastic Stack & Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
output {
icinga {
host => 'fornax.icinga-book.local'
user => 'root'
password => '***'
action => 'process-check-result'
action_config => {
exit_status => 0
plugin_output => "%{[message]}"
}
icinga_host => '%{[host]}'
icinga_service => 'logevent'
}
}
Elastic Stack & Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Use all actions of the API
– Process check result
– Add hosts
– Set downtimes
• Decide which data to use from what logevent in Logstash config
• Get results into Icinga in almost no time
• Use passive checks with automatic recovery
Elastic Stack & Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Icinga Web Modules „elasticsearch“
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Configure connection to Elasticsearch
• Set filters to identify logs
– Objectname in Icinga = Objectname in logs!
– Enforce Icinga Web permissions on logs
• Give Icinga users quick access to logs without allowing access to
Kibana
Elastic Stack & Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
# icingacli elasticsearch check --instance elastic01-hot --crit 5 --warn 3 
--index logstash* --filter "beat.hostname=qa,source=/var/log/httpd/*.log" 
--from -5m
OK - 0 hits
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Ready-to-use ruleset
– https://github.com/Icinga/icinga-logstash-pipeline
• Ingest Icinga Logs
• Have data parsed from logs
– „eventtype“ for every type of event
– Data like endpointnames, objectnames etc extracted
– Numbers like queuelengths extracted
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Use as a standalone Logstash pipeline
– Input and output for Redis are provided
– Clone git repo into configuration directory (and use *conf files)
– Rest of minimal config is provided in Readme
• Collect logs from masters, satellites, agents
• Get the whole picture what‘s going on in your monitoring
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Filter for severity
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Restrict to facility or severity
• Watch for spikes in logs
• View message just like in the logfile
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
View details of an event
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Get Facility/Severity
• „Eventtype“ for every kind of logmessage
• Get related object (split into host, service, notification etc.)
• Get message specific details (pluginoutput, exitcodes etc.)
• Use all these fields for filters or graphs
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Use dashboards
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• Use dashboards for screenwalls
– See problems arising before they get critical
– Get fresh status update during problems
• Use them interactively
– Klick on parts of graphs to create quick filters
– Make fast drilldowns
– Filter every item on the dashboard at once (graphs, event lists)
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Detect anomalies
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• See unusual spikes in event flows
– Big benefit even for experienced log-greppers
• Get consolidated logs from all (or some) nodes
– Drill down to the problem at hand
Elastic Stack and Icinga
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
Questions and Answers
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
• thomas.widhalm@netways.de
• thomas.widhalm@icinga.com
• Twitter: @widhalmt
• GnuPG: B50D AF2B 22A6 94E8 C195 9C89 DAAC 19AE A84C B603
Contact
2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm
netways.de
blog.netways.de
git.netways.de
sales@netways.de
netways
netways
netways
+49 911 92885 - 66
Contact

More Related Content

More from Icinga

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

More from Icinga (20)

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

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 

Current State of Logmanagement with Icinga - Icinga Camp Stockholm 2019

  • 1. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Icinga 2 and Logs
  • 2. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Thomas Widhalm ( @widhalmt ) • Lead Support Engineer @ Netways • Specialised in Icinga and Elastic Stack • Collector of Star Wars Lego and Camo patterns About me
  • 3. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm About me
  • 4. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Logs
  • 5. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Every IT infrastructure has lots of them • Many admins don‘t really care • Focused view of one box • Filters and parsing on the fly – Different levels of knowledge – Rerun all filters every time you change something • Full harddisks or now long time storage • Only used when something bad happened Logs
  • 6. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Different kinds of logs
  • 7. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Logs of monitored objects • Logs of Icinga • Logs of alerts and notifications • Logs of logmanagement Logs and Icinga
  • 8. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Give more thorough insight • Allow monitoring of otherwise inaccessible objects • Different ways of monitoring – Plugin / Agent – Logmanagement Logs of monitored objects
  • 9. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Show how Icinga is doing • Help with monitoring and debugging • Very useful for post mortems and support tickets Logs of Icinga
  • 10. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Part of Icinga logs • Can be used for SLA / umbrella monitoring • Basically show how monitored objects are doing Logs of alerts and notifications
  • 11. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Often can‘t be processed by logmanagement itself (Loops!) • Show problems in logmanagement infrastructure Logs of logmanagement
  • 12. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Toolset
  • 13. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • No native way of monitoring logs • Plugins for monitoring logs – Statusmonitoring, no searching – Only single hosts Icinga
  • 14. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Collects Logdata from many sources • Stores data in a central database • Monitoring addon – Not free – Cumbersome configuration • Connectors to many receivers – Cumbersome configuration – All but flexible Elastic Stack
  • 15. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Search Server (based on Apache Lucene) • Elastic, highly available, load balanced very resilient • Extremely scalable • REST-API for communication Components of Elastic Stack: Elasticsearch
  • 16. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Receive Logs from many sources – Syslog – Beats (Agents) • Send to many targets – Elasticsearch – Icinga • Parse, disect, transform, filter, enrich Logs Components of Elastic Stack: Logstash
  • 17. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Webinterface for Elastic Stack • Search and filter logs • Build Dashboards for Screens or interactive drill drown Components of Elastic Stack: Kibana
  • 18. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Lightweight agents • Collect Filelogs (syslog) or Event Log • More specialised beats available – Icingabeat – MySQL-beat – Redisbeat Components of Elastic Stack: Beats
  • 19. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Common problems
  • 20. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Hardly any „problem event“ has a corresponding „ok again“ event • Hearing nothing from your hosts: – Everything is fine – Too dead to talk End of the world or end of the problem?
  • 21. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Automatically return to „OK“ after a while – Send notifications – Enrich with active monitoring • Have someone check – Can create lots of work Best effort
  • 22. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Approaches
  • 23. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Use Elastic Stack to collect and store Logmessages • Use Icinga for alerting • Different ways of connecting Combined forces
  • 24. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Cumbersome configuration – Still easier than full blown logmanagement? • Not part of monitoring plugins • Independent from everything else – Use to avoid loops – Monitor logmanagement infrastructure Ye goode olde check_logfiles
  • 25. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Full blown logmanagement solution • Several ways of ingestion – Reads logs from filesystem – Receives logs from „icingabeat“ agent • Several ways of monitoring – „icinga“ output to API – Icinga Web module „elasticsearch“ Elastic Stack & Icinga
  • 26. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm $ yum install java-1.8.0-openjdk-devel $ /usr/share/logstash/bin/logstash-plugin install logstash-output-icinga Elastic Stack & Icinga
  • 27. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm output { icinga { host => 'fornax.icinga-book.local' user => 'root' password => '***' action => 'process-check-result' action_config => { exit_status => 0 plugin_output => "%{[message]}" } icinga_host => '%{[host]}' icinga_service => 'logevent' } } Elastic Stack & Icinga
  • 28. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Use all actions of the API – Process check result – Add hosts – Set downtimes • Decide which data to use from what logevent in Logstash config • Get results into Icinga in almost no time • Use passive checks with automatic recovery Elastic Stack & Icinga
  • 29. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Icinga Web Modules „elasticsearch“
  • 30. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Configure connection to Elasticsearch • Set filters to identify logs – Objectname in Icinga = Objectname in logs! – Enforce Icinga Web permissions on logs • Give Icinga users quick access to logs without allowing access to Kibana Elastic Stack & Icinga
  • 31. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm # icingacli elasticsearch check --instance elastic01-hot --crit 5 --warn 3 --index logstash* --filter "beat.hostname=qa,source=/var/log/httpd/*.log" --from -5m OK - 0 hits Elastic Stack and Icinga
  • 32. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Ready-to-use ruleset – https://github.com/Icinga/icinga-logstash-pipeline • Ingest Icinga Logs • Have data parsed from logs – „eventtype“ for every type of event – Data like endpointnames, objectnames etc extracted – Numbers like queuelengths extracted Elastic Stack and Icinga
  • 33. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Elastic Stack and Icinga
  • 34. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Elastic Stack and Icinga
  • 35. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Use as a standalone Logstash pipeline – Input and output for Redis are provided – Clone git repo into configuration directory (and use *conf files) – Rest of minimal config is provided in Readme • Collect logs from masters, satellites, agents • Get the whole picture what‘s going on in your monitoring Elastic Stack and Icinga
  • 36. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Filter for severity
  • 37. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Restrict to facility or severity • Watch for spikes in logs • View message just like in the logfile Elastic Stack and Icinga
  • 38. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm View details of an event
  • 39. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Get Facility/Severity • „Eventtype“ for every kind of logmessage • Get related object (split into host, service, notification etc.) • Get message specific details (pluginoutput, exitcodes etc.) • Use all these fields for filters or graphs Elastic Stack and Icinga
  • 40. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Use dashboards
  • 41. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • Use dashboards for screenwalls – See problems arising before they get critical – Get fresh status update during problems • Use them interactively – Klick on parts of graphs to create quick filters – Make fast drilldowns – Filter every item on the dashboard at once (graphs, event lists) Elastic Stack and Icinga
  • 42. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Detect anomalies
  • 43. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • See unusual spikes in event flows – Big benefit even for experienced log-greppers • Get consolidated logs from all (or some) nodes – Drill down to the problem at hand Elastic Stack and Icinga
  • 44. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm Questions and Answers
  • 45. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm • thomas.widhalm@netways.de • thomas.widhalm@icinga.com • Twitter: @widhalmt • GnuPG: B50D AF2B 22A6 94E8 C195 9C89 DAAC 19AE A84C B603 Contact
  • 46. 2019-09-03 | Icinga Camp Stockholm | Thomas Widhalm netways.de blog.netways.de git.netways.de sales@netways.de netways netways netways +49 911 92885 - 66 Contact