LOG- UND EVENTMANAGEMENT MIT LOGSTASH UND GRAPHITE



Similar documents
LOG- UND EVENTMANAGEMENT

Using elasticsearch, logstash and kibana to create realtime dashboards

Finding the needle in the haystack with ELK

Wie man aus langweiligen Logdateien Gold gewinnen kann

Log management with Logstash and Elasticsearch. Matteo Dessalvi

Logging on a Shoestring Budget

Mobile Analytics. mit Elasticsearch und Kibana. Dominik Helleberg

Log infrastructure & Zabbix. logging tools integration

Log management with Graylog2 Lennart Koopmann, FrOSCon Mittwoch, 29. August 12

Powering Monitoring Analytics with ELK stack

Bernd Ahlers Michael Friedrich. Log Monitoring Simplified Get the best out of Graylog2 & Icinga 2

Efficient Management of System Logs using a Cloud Radoslav Bodó, Daniel Kouřil CESNET. ISGC 2013, March 2013

Real-time Data Analytics mit Elasticsearch. Bernhard Pflugfelder inovex GmbH

Analyzing large flow data sets using. visualization tools. modern open-source data search and. FloCon Max Putas

Processing millions of logs with Logstash

Log Analysis with the ELK Stack (Elasticsearch, Logstash and Kibana) Gary Smith, Pacific Northwest National Laboratory

Using Logstash and Elasticsearch analytics capabilities as a BI tool

Andrew Moore Amsterdam 2015

Using NXLog with Elasticsearch and Kibana. Using NXLog with Elasticsearch and Kibana

Log Management with Open-Source Tools. Risto Vaarandi SEB Estonia

Reliable log data transfer

Comparative Analysis of Open-Source Log Management Solutions for Security Monitoring and Network Forensics

Systems Management with Open Source

Log managing at PIC. A. Bruno Rodríguez Rodríguez. Port d informació científica Campus UAB, Bellaterra Barcelona. December 3, 2013

April 8th - 10th, 2014 LUG14 LUG14. Lustre Log Analyzer. Kalpak Shah. DataDirect Networks. ddn.com DataDirect Networks. All Rights Reserved.

Information Retrieval Elasticsearch

A Year of HTCondor Monitoring. Lincoln Bryant Suchandra Thapa

CS242 PROJECT. Presented by Moloud Shahbazi Spring 2015

Centralized logging system based on WebSockets protocol

Technical Overview Simple, Scalable, Object Storage Software

Safe Harbor Statement

Log Management with Open-Source Tools. Risto Vaarandi rvaarandi 4T Y4H00 D0T C0M

logstash The Book Log management made easy James Turnbull

Deploying and Managing SolrCloud in the Cloud ApacheCon, April 8, 2014 Timothy Potter. Search Discover Analyze

Data Discovery and Systems Diagnostics with the ELK stack. Rittman Mead - BI Forum 2015, Brighton. Robin Moffatt, Principal Consultant Rittman Mead

SIG-NOC Meeting - Stuttgart 04/08/2015 Icinga - Open Source Monitoring

und die Java-Welt Florian

Monitoring Linux and Windows Logs with Graylog Collector. Bernd Ahlers Graylog, Inc.

Introduction. Background

Scaling Graphite Installations

Spoilt for Choice Which Integration Framework to choose? Mule ESB. Integration. Kai Wähner

logstash The Book Log management made easy James Turnbull

INSTALLING KAAZING WEBSOCKET GATEWAY - HTML5 EDITION ON AN AMAZON EC2 CLOUD SERVER

Building a logging pipeline with Open Source tools. Iñigo Ortiz de Urbina Cazenave

Using Cacti To Graph MySQL s Metrics

Graylog2 Lennart Koopmann, OSDC /

A Comparative Analysis of Open-Source Log Management Solutions for Security Monitoring and Network Forensics. Risto Vaarandi Paweł Niziński

PROFESSIONAL. Node.js BUILDING JAVASCRIPT-BASED SCALABLE SOFTWARE. Pedro Teixeira WILEY. John Wiley & Sons, Inc.

Icinga and Puppet Dominik Schulz Head of Datacenter and Operations Magic Internet / MyVideo

Modern Web development and operations practices. Grig Gheorghiu VP Tech Operations Nasty Gal

OpenITSM - IT Service Management with Open Source Software

@tobiastrelle. codecentric AG 1

Introduction to HDFS. Prasanth Kothuri, CERN

SCALABILITY. Hodicska Gergely. Web Engineering Manager as Ustream. May 7, 2012

Creating Big Data Applications with Spring XD

Scalable Architecture on Amazon AWS Cloud

The objective of this lab is to learn how to set up an environment for running distributed Hadoop applications.

A New Approach to Network Visibility at UBC. Presented by the Network Management Centre and Wireless Infrastructure Teams

Setting up Ensembl Solr Search on an Ubuntu external server 22nd November 2013

WHITE PAPER Redefining Monitoring for Today s Modern IT Infrastructures

Open Source Monitoring

OpenITSM - IT Service Management with Open Source Software

CI Pipeline with Docker

Partek Flow Installation Guide

the missing log collector Treasure Data, Inc. Muga Nishizawa

Search Big Data with MySQL and Sphinx. Mindaugas Žukas

Monitis Project Proposals for AUA. September 2014, Yerevan, Armenia

Hands-on Cassandra. OSCON July 20, Eric

itixi Ubuntu Server Deployment How-To/Information

How To Use Elasticsearch

Log management with Graylog2 Lennart Koopmann, Kieker Days Mittwoch, 5. Dezember 12

Building Real-Time Analytics Into Big Data Applications

Command Line Crash Course For Unix

Openbus Documentation

Developing an Application Tracing Utility for Mule ESB Application on EL (Elastic Search, Log stash) Stack Using AOP

Maintaining Non-Stop Services with Multi Layer Monitoring

How to manage your OpenStack Swift Cluster using Swift Metrics Sreedhar Varma Vedams Inc.

Quick Installation Guide. CereusReporting - Express Edition

Topics. CIT 470: Advanced Network and System Administration. Why Monitoring? Why Monitoring? Historical Monitoring Processes. Historical Monitoring

About Me. Triona Workshop Mainz, September Thomas Wehrspann. Consultant. Wilhelm-Theodor-Römheld-Str Mainz.

Blackboard Open Source Monitoring

E6893 Big Data Analytics: Demo Session for HW I. Ruichi Yu, Shuguan Yang, Jen-Chieh Huang Meng-Yi Hsu, Weizhen Wang, Lin Haung.

AmbrosiaMQ-MuleSource ESB Integration

Ninja Webtechnologies. Eray Basar, 9elements

Performance Analysis and Capacity Planing

JAVA IN THE CLOUD PAAS PLATFORM IN COMPARISON

CS615 - Aspects of System Administration

STeP-IN SUMMIT June 2014 at Bangalore, Hyderabad, Pune - INDIA. Performance testing Hadoop based big data analytics solutions

ZingMe Practice For Building Scalable PHP Website. By Chau Nguyen Nhat Thanh ZingMe Technical Manager Web Technical - VNG

Introduction to HDFS. Prasanth Kothuri, CERN

Reducing the Operations Burden and Increasing QoS with WSO2 Platform Management and Administration Tactics

FILECLOUD HIGH AVAILABILITY

Spark ΕΡΓΑΣΤΗΡΙΟ 10. Prepared by George Nikolaides 4/19/2015 1

On- Prem MongoDB- as- a- Service Powered by the CumuLogic DBaaS Platform

MADOCA II Data Logging System Using NoSQL Database for SPring-8

Lambda Architecture. Near Real-Time Big Data Analytics Using Hadoop. January Website:

CactoScale Guide User Guide. Athanasios Tsitsipas (UULM), Papazachos Zafeirios (QUB), Sakil Barbhuiya (QUB)

Web Framework Performance Examples from Django and Rails

Transcription:

LOG- UND EVENTMANAGEMENT MIT LOGSTASH UND GRAPHITE LINUXTAG 2014 08.05.2014 BERND ERK NETWAYS GMBH

AGENDA Kurzvorstellung Einführung Architektur Installation Routing und Filterung von Events Interfaces & API Integration in Nagios und Icinga Fragen & Antworten

KURZVORSTELLUNG

KURZVORSTELLUNG NETWAYS Firmengründung 1995 Open Source seit 1997 40 Mitarbeiter Spezialisierung in den Bereichen Open Source Systems Management und Open Source Datacenter Infrastructure http://jobs.netways.de

KURZVORSTELLUNG BERND ERK Gründung 1977 Open Source seit 2007 Spezialisierung in Open Source Unterhaltung und allen anderen Dingen die links und rechts runterfallen

NETWAYS KOMPETENZEN OPEN SOURCE SYSTEMS MANAGEMENT OPEN SOURCE DATA CENTER Monitoring & Reporting Configuration Management Service Management Knowledge Management Backup & Recovery High Availability & Clustering Cloud Computing Load Balancing Virtualization Database Management MANAGED SERVICES MONITORING HARDWARE KONFERENZEN

NETWAYS KONFERENZEN Open Source Backup Conference 22. 23. September 2014 - Köln PuppetCamp Düsseldorf 16. Oktober 2014 Düsseldorf Open Source Monitoring Conference 18. 20. November 2014 - Nürnberg OpenNebula Conf 02. 04. Dezember 2014 - Berlin

EINFÜHRUNG

LOGS Logs -> Fluss an unstrukturierten Daten Oct 4 16:57:24 web sshd[25828]: Received disconnect from 10.10.0.31: 11: disconnected by user bestehend aus Timestamp und Message

EVENTS Event -> Fluss an strukturierten Daten Event { Time: Oct 4 16:57:24 Process: sshd State: Received disconnect from 10.10.0.31 Client: 10.10.0.31 bestehend aus konkreten Attributen

LOG & EVENTMANAGEMENT Logs > Event > Analyse (Korrelation) > Aktion

TOOLS Nagios & Icinga Addons check_logfiles NagTrap EventDB EDBC Logmanagement-Tools Graylog2 Fluentd Logstash

LOGSTASH Logstash

ARCHITEKTUR & INSTALLATION

LOGSTASH Logmanagement auf Basis von JRuby Konfigurierbare Pipe Flexible Plugin-Architektur für Input Filter Output Standardplugins für alle gängige Protokolle Webinterface

LOGSTASH - IO Inputs Outputs amqp relp amqp http s3 drupal_dblog s3 boundary irc sns elasticsearch eventlog exec file ganglia gelf gemfire generator graphite heroku imap irc log4j lumberjack pipe rabbitmq snmptrap sqlite sqs stdin stomp syslog tcp twitter udp unix varnishlog websocket wmi xmpp zenoss zeromq circonus cloudwatch datadog datadog_metrics elasticsearch elasticsearch_http elasticsearch_river email exec file ganglia gelf gemfire google_cloud_storage graphite graphtastic jira juggernaut librato loggly lumberjack metriccatcher mongodb nagios nagios_nsca null opentsdb pagerduty pipe rabbitmq redis riak sqs statsd stdout stomp syslog tcp udp websocket xmpp zabbix zeromq redis hipchat riemann

INSTALLATION - LOGSTASH Download - http://logstash.net tar xvf logstash-x.x.x.tar bin/logtash agent -f <config-file>

ARCHITEKTUR Shipper Shipper Shipper Broker Indexer Search & Storage Webinterface

REDIS NoSQL in memory auf Basis von C Unterstützung verschiedener Datentypen strings hashes lists sets and sorted sets Support für verschiedene Replikationsszenarien SCHNELL $./redis-benchmark -r 1000000 -n 2000000 -t get,set,lpush,lpop -q SET: 122556.53 requests per second GET: 123601.76 requests per second LPUSH: 136752.14 requests per second LPOP: 132424.03 requests per second

INSTALLATION - REDIS Download - http://redis.io/download make make test make install /usr/local/bin/redis-server

ELASTICSEARCH Schemafreier RESTful Suchserver auf Basis von Java Basierend auf Lucene Core Vergleichbar mit Apache Solr Verteilte Architektur durch Shards Replicas Gateways Realtime-Suche als Basis für Kibana

INSTALLATION - ELASTICSEARCH Download http://elasticsearch.org/download/ Entpacken des Archives Ausführung von bin/elasticsearch

ROUTING UND FILTERUNG VON EVENTS

ÜBERSICHT Shipper Shipper Shipper Broker Indexer Search & Storage Webinterface

KONFIGURATION - LOGSTASH - SHIPPER Übermittlung von Logs an Logstash Logstash Lumberjack Syslog Log4J Gelf File-Read u.v.a.m.

Broker Indexer Search & Storage Webinterface www.netways.de // blog.netways.de // @netways KONFIGURATION - LOGSTASH - SHIPPER Konfiguration input { file { path => "/root/osmc/demodata/access.log.1 type => "apache-access" output { redis { host => "127.0.0.1" data_type => "list" key => "logstash.apache" Shipper Shipper Shipper bin/logstash agent -f logstash_shipper.conf

Broker Indexer Search & Storage Webinterface www.netways.de // blog.netways.de // @netways KONFIGURATION - LOGSTASH - INDEXER Konfiguration input { redis { host => "127.0.0.1" type => "redis-input" # these settings should match the output of the agent data_type => "list" key => "logstash.apache output { elasticsearch { host => "127.0.0.1" Shipper Shipper Shipper

Broker Indexer Search & Storage Webinterface www.netways.de // blog.netways.de // @netways KONFIGURATION - LOGSTASH INDEXER - APACHE Konfiguration für Apache-Logs input { redis { host => "127.0.0.1" type => "apache-access data_type => "list" key => "logstash.apache format => "json_event" filter { if [type] == "apache-access" { grok { match => [ "message", "%{COMBINEDAPACHELOG" ] output { elasticsearch {host => "127.0.0.1 Shipper Shipper Shipper

Broker Indexer Search & Storage Webinterface www.netways.de // blog.netways.de // @netways KONFIGURATION - LOGSTASH INDEXER - GEOIP Konfiguration für Geo-Daten input { redis { host => "127.0.0.1" type => "apache-access data_type => "list" key => "logstash.apache filter { grok { type => "apache-access" pattern => "%{COMBINEDAPACHELOG" geoip { source => "clientip" add_tag => ["geotag"] output { elasticsearch {host => "127.0.0.1 Shipper Shipper Shipper

INTERFACES & API

KIBANA Kibana

KIBANA

ELASTICHQ

KIBANA - DEMO DEMO

INTEGRATION NAGIOS UND ICINGA

REALTIME LOGANALYSE Analyse verschiedener Quellen in Realtime Prüfung auf Patterns und States Facilitites Regex Programs Übermittlung als Passiver Event

ÜBERSICHT LOGSTASH UND ICINGA Indexer Search & Storage Webinterface Icinga - Commandpipe Icinga Web

Broker Indexer Search & Storage Webinterface www.netways.de // blog.netways.de // @netways KONFIGURATION - LOGSTASH INDEXER - ICINGA Konfiguration für Icinga-Alert input { Shipper Shipper Shipper filter { if [type] == "syslog" { grok {match => [ "message", "%{SYSLOGBASE" ] grep { match => [ "message", "Error" ] drop => false add_tag => "nagios-update" add_field => [ # "nagios_host", "%{@source_host", "nagios_host", "localhost", "nagios_service", "Logstash", "nagios_level", "2 ] output { elasticsearch {host => "127.0.0.1 nagios { commandfile => "/var/lib/icinga/rw/icinga.cmd"

LOGSTASH ICINGA - DEMO DEMO

ZUGABE

REALTIME GRAPHING

STATSD & GRAPHITE StatsD Netzwerkdaemon auf Basis von UDP Bucket -> Value -> Flush Entkoppelte Zwischenaggretion für Statisik Graphite Graphing-Framework bestehend aus Whisper (Datenbank) Carbon (Engine) Graphite-Web (Interface)

INSTALLATION STATSD - NODEJS apt-get install make python g++ checkinstall mkdir nodejs && cd nodejs wget -N http://nodejs.org/dist/node-latest.tar.gz tar xzvf node-latest.tar.gz && cd `ls -rd node-v*` checkinstall

INSTALLATION STATSD wget https://github.com/etsy/statsd/archive/master.zip unzip master.zip node stats.js config.js

MONITORING - STATSD Status Informationen echo stats nc 127.0.0.1 8126 echo health nc 127.0.0.1 8126 Timer- und Counterinfo echo counters nc 127.0.0.1 8126 echo timers nc 127.0.0.1 8126

INSTALLATION GRAPHITE Download der Sources git clone https://github.com/graphiteproject/graphite-web.git git clone https://github.com/graphiteproject/carbon.git git clone https://github.com/graphiteproject/whisper.git

INSTALLATION GRAPHITE Installation Whisper pushd whisper sudo python setup.py install popd Installation Carbon pushd carbon sudo python setup.py install popd Konfiguration Carbon pushd /opt/graphite/conf cp carbon.conf.example carbon.conf cp storage-schemas.conf.example storage-schemas.conf

INSTALLATION GRAPHITE - WEBAPP Check Dependencies Graphite webapp pushd graphite-web python check-dependencies.py popd Installation Graphite webapp pushd graphite-web python setup.py install popd Konfiguration Apache example-graphite-vhost.conf

ÜBERSICHT STATSD UND GRAPHITE Indexer Search & Storage Webinterface Statsd Graphite

KONFIGURATION - LOGSTASH INDEXER - STATSD Konfiguration für Statsd Shipper Shipper input { redis { host => "127.0.0.1" type => "apache-access data_type => "list" key => "logstash.apache format => "json_event add_field=> ["sitename","www.icinga.org"] filter { if [type] == "apache-access" { grok {match => [ "message", "%{COMBINEDAPACHELOG" ] output { stdout { debug => true if [type] == "apache-access" { statsd { host => "localhost" port => 8125 namespace => "logstash" debug => false increment => "apache.%{sitename.response.%{response count => ["apache.%{sitename.bytes", "%{bytes"] elasticsearch {host => "127.0.0.1 Shipper Broker Search & Storage Webinterface Indexer StatsD

GRAPHITE - DEMO DEMO

FRAGEN & ANTWORTEN

FRAGEN & ANTWORTEN NETWAYS GmbH Deutschherrnstrasse 15-19 DANKE 90429 Nürnberg Tel: +49 911 92885-0 ICINGA- VORTRAG UM 16.00 UHR 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