SlideShare una empresa de Scribd logo
1 de 46
Descargar para leer sin conexión
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

Más contenido relacionado

Más de 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 2023Icinga
 
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 2023Icinga
 
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 2023Icinga
 
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 2023Icinga
 
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 2023Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 
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 2019Icinga
 

Más de 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
 

Último

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 

Último (20)

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 

Icinga Camp Stockholm 2019 - Monitoring Logs with Icinga and Elastic Stack

  • 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