log management with elk

17
Log Management with ELK ELASTICSEARCH, LOGSTASH, KIBANA FOR CENTRALIZED LOGS

Upload: geert-pante

Post on 23-Jun-2015

676 views

Category:

Technology


4 download

DESCRIPTION

Centralized Log Management using the ELK stack: ElasticSearch, Logstash, Kibana

TRANSCRIPT

Page 1: Log management with ELK

Log Management with ELKELASTICSEARCH, LOGSTASH, KIBANA FOR CENTRALIZED LOGS

Page 2: Log management with ELK

Purpose Centralized Log Management

◦ Collect, Parse and Filter using Logstash◦ Store, Index and Search using Elasticsearch◦ Visualize using Kibana

Full open source stack◦ Use for free◦ Support plan from Elasticsearch company

Page 3: Log management with ELK

Elasticsearch Real-time search engine

◦ Based on Apache Solr/Lucene◦ Pure Java◦ Document database

◦ Advanced text indexing◦ Fuzzy search

◦ Replication/Sharding for true scalability

Page 4: Log management with ELK

Logstash JRuby Based log processor Pluggable event pipeline

◦ Input plugins◦ Filter plugins◦ Codec plugins◦ Output plugins

DevOps Comunity◦ Mix of developers, operations and system administrators

Page 5: Log management with ELK

Kibana Browser based dashboard for ElasticSearch Visualization of query results

◦ Time Charts◦ Filter any field◦ Compare subsets

Page 6: Log management with ELK

Logstash pipeline Define input, filters and outputs

Simple configuration file

Ruby syntax

Page 7: Log management with ELK

Logstash not just for logs Interpretes different log formats

◦ Syslog messages◦ Log4j with full details◦ Apache log files

Other event types too◦ Ganglia server monitoring events◦ SNMP events◦ Windows EventLog

Pre-proces before sending◦ lumberjack

Page 8: Log management with ELK

Logstash Inputs Rsyslog via TCP/UDP Log4j appender JMX Listener Logstash-forwarder File tails SNMP Ganglia …

Page 9: Log management with ELK

Logstash Filters

Page 10: Log management with ELK

Grok Filter Readable regex Predefined patterns for common log data Extract to properties

◦ Indexed properties

Page 11: Log management with ELK

Metrics Filter Aggregate metrics

◦ Event rate using sliding windows◦ 1 min◦ 5 min◦ 15 min

◦ Min/max/stddev/percentiles

Page 12: Log management with ELK

Logstash Outputs

Page 13: Log management with ELK

Statsd output Node.js based

◦ Counters ◦ Timers◦ Graphite frontend

Page 14: Log management with ELK

Alert outputsSend alerts

◦ Email◦ Pagerduty◦ XMPP/Jabber◦ Hipchat◦ Nagios

Use treshold from metrics filter

Page 15: Log management with ELK

ElasticSearch output Auto-creates new index per day

Index all recognized fields

Full text index, customizable indexer, mapper

Page 16: Log management with ELK

Kibana dashboard

Page 17: Log management with ELK

Scalability Easy deployment using chef/puppet/docker