SlideShare une entreprise Scribd logo
1  sur  29
Télécharger pour lire hors ligne
ELK stack
Alexander Szalonnás
a.szalonnas@accenture.com
Elasticsearch + Logstash + Kibana (Centralized Log server)
Follow me on Linkedin 
Copyright © Accenture, LLP. All rights reserved.
About me
ELK stack
Accenture Bratislava
Alexander Szalonnás
Current responsibilities:
• Backend/ Frontend>
• Code implementation (Java, JSF PrimeFaces)
• Technical Architecture>
• Support Operations Architecture
• Support Development Architecture
Java JSF DB stuffs
 Logging
 Splunk vs Open Source (ELK stack)
 Logstash
 Elasticsearch
 Kibana
 Getting started
 Most asked/ upvoted questions and answers on Quora
 DEMO
 Q/A
Copyright © Accenture, LLP. All rights reserved.
Agenda
ELK stack
 Logging
 Log (file) created by server/ app
 Information about the requests, date, bytes served, user
agent, etc. It’s variable.
 Application runs
 Produces errors, warnings, debug, telemetry, analytics
events, and other information
 How to make sense of it?
Logging
$plunk
Copyright © Accenture, LLP. All rights reserved. ELK stack
Business as usual, until…
Copyright © Accenture, LLP. All rights reserved. ELK stack
#Outage @03:00 AM
Copyright © Accenture, LLP. All rights reserved. ELK stack
Massive RAGE
Copyright © Accenture, LLP. All rights reserved. ELK stack
Copyright © Accenture, LLP. All rights reserved. ELK stack
Or the old school style: Cat, grep,
awk, cut via the terminal ...
Good luck with that on 200 GB of
unstructured logs. Think lots of coffee
breaks.
The fix: ELK stack (it is Open Source)
Splunk vs. Open Source (ELK)
Copyright © Accenture, LLP. All rights reserved. ELK stack
 Splunk
 Widely used
 Easy to use
 Cross platform
 Expensive
 Complex set up process
 ELK stack
 Easy installation
 Open Source
 Extend functionality via plugins
 Simple web interface
 Prod, dev support and trainings paid
Why should I use Splunk when I can use
Open Source?
ELK is of pretty new about google trends (since 2013 is used)
ELK Stack?
Copyright © Accenture, LLP. All rights reserved. ELK stack
- Elasticsearch
- Logstash
- Kibana
1. collect data
2. parse/ filter
3. send data
Copyright © Accenture, LLP. All rights reserved.
logstash
ELK stack
Logstash is part of the family of
input
parse/ filter
output
logstash architecture
Copyright © Accenture, LLP. All rights reserved. ELK stack
1. collect data
Logstash input
file Rsyslog tcp udp redis
log4j
and
more …
Copyright © Accenture, LLP. All rights reserved. ELK stack
Sample conf
input{
tcp{
type=> “server1”
host=> “192.168.1.1”
port=> “5555”
}
}
Copyright © Accenture, LLP. All rights reserved. ELK stack
input{
tcp{
type=> “server1”
host=> “192.168.1.1”
port=> “5555”
}
}
file{
type => "my-log"
path => [ "C:/dev/Log/*.log*" ]
}
When 1 input When multiple inputs
2. parse/ filter
grok
grep
json
mutate
csv
Geoip
(by Maxmind db)
xml
key/ value
Logstash filters
Copyright © Accenture, LLP. All rights reserved. ELK stack
Grok filter (example)
Copyright © Accenture, LLP. All rights reserved. ELK stack
Logstash output
stdout statsd
tcp zmqfile
elastics
earch
graphite
Copyright © Accenture, LLP. All rights reserved. ELK stack
3. send data
and
more …
Copyright © Accenture, LLP. All rights reserved. ELK stack
logstash => elasticsearch sample
1. JSON based REST API
2. Schema-less database
3. Indexes every single field
4. Full text search
5. Relational DB/ JSON document
(“NoSQL” world)
Copyright © Accenture, LLP. All rights reserved.
elasticsearch
ELK stack
Distributed RESTful
search server
1. Clean and simple UI
2. Data discovery
2. Fully customizable
3. Boostrap based
Copyright © Accenture, LLP. All rights reserved.
Kibana
ELK stack
Web UI for the logs
Kibana is part of the family of
Kibana when it is
heavily set up
1) Download Elasticsearch (ES)/ Logstash/ Kibana to your computer. The
download links on the “Sources” slide of the presentation*.
2) Simply run ES as is, worry about config later.
3) Follow logstash cookbook to get started.
4) Setup some inputs.
5) Install kibana plugin in ES.
6) Open your browser and type “host:port” where kibana is running and try out
the fresh log server.
Getting started
Copyright © Accenture, LLP. All rights reserved.
Demo scenario
ELK stack
logstash
elasticsearch
kibana
Sample app
generated log
file
Copyright © Accenture, LLP. All rights reserved.
Most asked/ voted Q/ As on Quora*
ELK stack
*www.Quora.com is a question-and-answer website where (mostly IT) questions are created, answered,
edited and organized by its community of users. It had around **50 Million visitors in Jan 2015.
Who are the biggest direct competitors to Splunk?
- “ELK is a free alternative to Splunk. Needless to say, the officiall support ELK (Elasticsearch, Logstash, Kibana)
stack is an open-source alternative to Splunk's log-forwader/indexer/dashboard combo.”
Can Elasticsearch be used to replace your business's existing business intelligence
system?
- “Works pretty well but it has a downside, the security shield is still very nascent but also the releases are
coming quickly so it is improved over the time.”
What are the most latest recommended tools and technologies for real time
analysis and visualization using Twitter data?
- “The ELK (ElasticSearch) stack is an open source option to do real time search on Twitter data. Logstash
has a plugin for Twitter that can be used to collect, parse and store the data.”
Copyright © Accenture, LLP. All rights reserved.
Q/ A
ELK stack
Copyright © Accenture, LLP. All rights reserved.
Sources
ELK stack
* ELK stack tools to download-
http://www.elasticsearch.org/overview/elkdownloads/
Installation guide for Windows -
https://community.ulyaoth.net/threads/how-to-install-logstash-on-a-windows-server-with-ki
bana-in-iis.17
/
Installation guide for Linux- http://
everythingshouldbevirtual.com/highly-available-elk-elasticsearch-logstash-kibana-setup
Logstash documentation- http://logstash.net/docs/1.4.2/
Kibana documentation- http://www.elasticsearch.org/guide/en/kibana/current/index.html
Elasticsearch documentation- http://www.elasticsearch.org/guide/
**Quora number of visitors- http://www.similarweb.com/website/quora.com
Copyright © Accenture, LLP. All rights reserved.
Multiple schema example (no demo)
ELK stack
logstash
elasticsearch
kibana
Apache server
IIS server
Jboss server
TCP
TCP
TCP

Contenu connexe

Tendances

Changelog Stream Processing with Apache Flink
Changelog Stream Processing with Apache FlinkChangelog Stream Processing with Apache Flink
Changelog Stream Processing with Apache FlinkFlink Forward
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityColin Charles
 
Airflow presentation
Airflow presentationAirflow presentation
Airflow presentationIlias Okacha
 
Building a Data Pipeline using Apache Airflow (on AWS / GCP)
Building a Data Pipeline using Apache Airflow (on AWS / GCP)Building a Data Pipeline using Apache Airflow (on AWS / GCP)
Building a Data Pipeline using Apache Airflow (on AWS / GCP)Yohei Onishi
 
(Re)Indexing Large Repositories in Alfresco
(Re)Indexing Large Repositories in Alfresco(Re)Indexing Large Repositories in Alfresco
(Re)Indexing Large Repositories in AlfrescoAngel Borroy López
 
ELK Elasticsearch Logstash and Kibana Stack for Log Management
ELK Elasticsearch Logstash and Kibana Stack for Log ManagementELK Elasticsearch Logstash and Kibana Stack for Log Management
ELK Elasticsearch Logstash and Kibana Stack for Log ManagementEl Mahdi Benzekri
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratopSandesh Rao
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaElastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaSpringPeople
 
Centralised logging with ELK stack
Centralised logging with ELK stackCentralised logging with ELK stack
Centralised logging with ELK stackSimon Hanmer
 
Log analysis using elk
Log analysis using elkLog analysis using elk
Log analysis using elkRushika Shah
 
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 Seoul
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 SeoulElastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 Seoul
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 SeoulSeungYong Oh
 
Apache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceApache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceSijie Guo
 
Building a Virtual Data Lake with Apache Arrow
Building a Virtual Data Lake with Apache ArrowBuilding a Virtual Data Lake with Apache Arrow
Building a Virtual Data Lake with Apache ArrowDremio Corporation
 
Log analysis with the elk stack
Log analysis with the elk stackLog analysis with the elk stack
Log analysis with the elk stackVikrant Chauhan
 
Building an analytics workflow using Apache Airflow
Building an analytics workflow using Apache AirflowBuilding an analytics workflow using Apache Airflow
Building an analytics workflow using Apache AirflowYohei Onishi
 
Oracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and MaskingOracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and MaskingDLT Solutions
 

Tendances (20)

ELK Stack
ELK StackELK Stack
ELK Stack
 
Apache Solr Workshop
Apache Solr WorkshopApache Solr Workshop
Apache Solr Workshop
 
Changelog Stream Processing with Apache Flink
Changelog Stream Processing with Apache FlinkChangelog Stream Processing with Apache Flink
Changelog Stream Processing with Apache Flink
 
Elk
Elk Elk
Elk
 
Best practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High AvailabilityBest practices for MySQL/MariaDB Server/Percona Server High Availability
Best practices for MySQL/MariaDB Server/Percona Server High Availability
 
Airflow presentation
Airflow presentationAirflow presentation
Airflow presentation
 
Building a Data Pipeline using Apache Airflow (on AWS / GCP)
Building a Data Pipeline using Apache Airflow (on AWS / GCP)Building a Data Pipeline using Apache Airflow (on AWS / GCP)
Building a Data Pipeline using Apache Airflow (on AWS / GCP)
 
(Re)Indexing Large Repositories in Alfresco
(Re)Indexing Large Repositories in Alfresco(Re)Indexing Large Repositories in Alfresco
(Re)Indexing Large Repositories in Alfresco
 
ELK Elasticsearch Logstash and Kibana Stack for Log Management
ELK Elasticsearch Logstash and Kibana Stack for Log ManagementELK Elasticsearch Logstash and Kibana Stack for Log Management
ELK Elasticsearch Logstash and Kibana Stack for Log Management
 
Oracle Database performance tuning using oratop
Oracle Database performance tuning using oratopOracle Database performance tuning using oratop
Oracle Database performance tuning using oratop
 
Elastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & KibanaElastic - ELK, Logstash & Kibana
Elastic - ELK, Logstash & Kibana
 
Centralised logging with ELK stack
Centralised logging with ELK stackCentralised logging with ELK stack
Centralised logging with ELK stack
 
Log analysis using elk
Log analysis using elkLog analysis using elk
Log analysis using elk
 
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 Seoul
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 SeoulElastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 Seoul
Elastic Stack 을 이용한 게임 서비스 통합 로깅 플랫폼 - elastic{on} 2019 Seoul
 
Apache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage ServiceApache BookKeeper: A High Performance and Low Latency Storage Service
Apache BookKeeper: A High Performance and Low Latency Storage Service
 
Building a Virtual Data Lake with Apache Arrow
Building a Virtual Data Lake with Apache ArrowBuilding a Virtual Data Lake with Apache Arrow
Building a Virtual Data Lake with Apache Arrow
 
Elk - An introduction
Elk - An introductionElk - An introduction
Elk - An introduction
 
Log analysis with the elk stack
Log analysis with the elk stackLog analysis with the elk stack
Log analysis with the elk stack
 
Building an analytics workflow using Apache Airflow
Building an analytics workflow using Apache AirflowBuilding an analytics workflow using Apache Airflow
Building an analytics workflow using Apache Airflow
 
Oracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and MaskingOracle Key Vault Data Subsetting and Masking
Oracle Key Vault Data Subsetting and Masking
 

En vedette

ELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedTin Le
 
My Bro The ELK
My Bro The ELKMy Bro The ELK
My Bro The ELKTripwire
 
Elasticsearch in Netflix
Elasticsearch in NetflixElasticsearch in Netflix
Elasticsearch in NetflixDanny Yuan
 
Elk devops
Elk devopsElk devops
Elk devopsIdeato
 
Deploying E.L.K stack w Puppet
Deploying E.L.K stack w PuppetDeploying E.L.K stack w Puppet
Deploying E.L.K stack w PuppetColin Brown
 
Drupal and Elasticsearch
Drupal and ElasticsearchDrupal and Elasticsearch
Drupal and ElasticsearchNikolay Ignatov
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKYoungHeon (Roy) Kim
 
"How about no grep and zabbix?". ELK based alerts and metrics.
"How about no grep and zabbix?". ELK based alerts and metrics."How about no grep and zabbix?". ELK based alerts and metrics.
"How about no grep and zabbix?". ELK based alerts and metrics.Vladimir Pavkin
 
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
 New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than EverAlienVault
 
Real-time data analysis using ELK
Real-time data analysis using ELKReal-time data analysis using ELK
Real-time data analysis using ELKJettro Coenradie
 
ELK Ruminating on Logs (Zendcon 2016)
ELK Ruminating on Logs (Zendcon 2016)ELK Ruminating on Logs (Zendcon 2016)
ELK Ruminating on Logs (Zendcon 2016)Mathew Beane
 
Malware detection how to spot infections early with alien vault usm
Malware detection how to spot infections early with alien vault usmMalware detection how to spot infections early with alien vault usm
Malware detection how to spot infections early with alien vault usmAlienVault
 
Practical Elasticsearch - real world use cases
Practical Elasticsearch - real world use casesPractical Elasticsearch - real world use cases
Practical Elasticsearch - real world use casesItamar
 
Integrated Tools in OSSIM
Integrated Tools in OSSIMIntegrated Tools in OSSIM
Integrated Tools in OSSIMAlienVault
 
Best Practices for Configuring Your OSSIM Installation
Best Practices for Configuring Your OSSIM InstallationBest Practices for Configuring Your OSSIM Installation
Best Practices for Configuring Your OSSIM InstallationAlienVault
 
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....Denis Gundarev
 
Elasticsearch as a search alternative to a relational database
Elasticsearch as a search alternative to a relational databaseElasticsearch as a search alternative to a relational database
Elasticsearch as a search alternative to a relational databaseKristijan Duvnjak
 
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk Server
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk ServerUsing ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk Server
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk ServerBizTalk360
 
How Did BuzzFeed Harvest One Million Email Subscribers?
How Did BuzzFeed Harvest One Million Email Subscribers?How Did BuzzFeed Harvest One Million Email Subscribers?
How Did BuzzFeed Harvest One Million Email Subscribers?Wildcard Digital Inc
 

En vedette (20)

ELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learnedELK at LinkedIn - Kafka, scaling, lessons learned
ELK at LinkedIn - Kafka, scaling, lessons learned
 
My Bro The ELK
My Bro The ELKMy Bro The ELK
My Bro The ELK
 
Elasticsearch in Netflix
Elasticsearch in NetflixElasticsearch in Netflix
Elasticsearch in Netflix
 
Elk stack
Elk stackElk stack
Elk stack
 
Elk devops
Elk devopsElk devops
Elk devops
 
Deploying E.L.K stack w Puppet
Deploying E.L.K stack w PuppetDeploying E.L.K stack w Puppet
Deploying E.L.K stack w Puppet
 
Drupal and Elasticsearch
Drupal and ElasticsearchDrupal and Elasticsearch
Drupal and Elasticsearch
 
MySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELKMySQL Audit using Percona audit plugin and ELK
MySQL Audit using Percona audit plugin and ELK
 
"How about no grep and zabbix?". ELK based alerts and metrics.
"How about no grep and zabbix?". ELK based alerts and metrics."How about no grep and zabbix?". ELK based alerts and metrics.
"How about no grep and zabbix?". ELK based alerts and metrics.
 
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
 New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
New OSSIM v5.0 - Get Security Visibility Faster & Easier Than Ever
 
Real-time data analysis using ELK
Real-time data analysis using ELKReal-time data analysis using ELK
Real-time data analysis using ELK
 
ELK Ruminating on Logs (Zendcon 2016)
ELK Ruminating on Logs (Zendcon 2016)ELK Ruminating on Logs (Zendcon 2016)
ELK Ruminating on Logs (Zendcon 2016)
 
Malware detection how to spot infections early with alien vault usm
Malware detection how to spot infections early with alien vault usmMalware detection how to spot infections early with alien vault usm
Malware detection how to spot infections early with alien vault usm
 
Practical Elasticsearch - real world use cases
Practical Elasticsearch - real world use casesPractical Elasticsearch - real world use cases
Practical Elasticsearch - real world use cases
 
Integrated Tools in OSSIM
Integrated Tools in OSSIMIntegrated Tools in OSSIM
Integrated Tools in OSSIM
 
Best Practices for Configuring Your OSSIM Installation
Best Practices for Configuring Your OSSIM InstallationBest Practices for Configuring Your OSSIM Installation
Best Practices for Configuring Your OSSIM Installation
 
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....
How to hack Citrix (So, You Just Inherited Someone Else's Citrix Environment....
 
Elasticsearch as a search alternative to a relational database
Elasticsearch as a search alternative to a relational databaseElasticsearch as a search alternative to a relational database
Elasticsearch as a search alternative to a relational database
 
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk Server
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk ServerUsing ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk Server
Using ELK-Stack (Elasticsearch, Logstash and Kibana) with BizTalk Server
 
How Did BuzzFeed Harvest One Million Email Subscribers?
How Did BuzzFeed Harvest One Million Email Subscribers?How Did BuzzFeed Harvest One Million Email Subscribers?
How Did BuzzFeed Harvest One Million Email Subscribers?
 

Similaire à elk_stack_alexander_szalonnas

Alfresco monitoring with Nagios and ELK stack
Alfresco monitoring with Nagios and ELK stackAlfresco monitoring with Nagios and ELK stack
Alfresco monitoring with Nagios and ELK stackCesar Capillas
 
2015 03-16-elk at-bsides
2015 03-16-elk at-bsides2015 03-16-elk at-bsides
2015 03-16-elk at-bsidesJeremy Cohoe
 
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...ShapeBlue
 
How bol.com makes sense of its logs, using the Elastic technology stack.
How bol.com makes sense of its logs, using the Elastic technology stack.How bol.com makes sense of its logs, using the Elastic technology stack.
How bol.com makes sense of its logs, using the Elastic technology stack.Renzo Tomà
 
Streaming Solutions for Real time problems
Streaming Solutions for Real time problemsStreaming Solutions for Real time problems
Streaming Solutions for Real time problemsAbhishek Gupta
 
How fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapeHow fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapePhil Wilkins
 
Elk ruminating on logs
Elk ruminating on logsElk ruminating on logs
Elk ruminating on logsMathew Beane
 
Logging using ELK Stack for Microservices
Logging using ELK Stack for MicroservicesLogging using ELK Stack for Microservices
Logging using ELK Stack for MicroservicesVineet Sabharwal
 
Streaming solutions for real time problems
Streaming solutions for real time problems Streaming solutions for real time problems
Streaming solutions for real time problems Aparna Gaonkar
 
A Survey of Event Processing Languages (EPLs), October 7, 2006
A Survey of Event Processing Languages (EPLs), October 7, 2006A Survey of Event Processing Languages (EPLs), October 7, 2006
A Survey of Event Processing Languages (EPLs), October 7, 2006Tim Bass
 
Elastic Meetup Belgium - December 2018
Elastic Meetup Belgium - December 2018Elastic Meetup Belgium - December 2018
Elastic Meetup Belgium - December 2018Arthur Eyckerman
 
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...LogeekNightUkraine
 
Octo and the DevSecOps Evolution at Oracle by Ian Van Hoven
Octo and the DevSecOps Evolution at Oracle by Ian Van HovenOcto and the DevSecOps Evolution at Oracle by Ian Van Hoven
Octo and the DevSecOps Evolution at Oracle by Ian Van HovenInfluxData
 
Apache Commons Overview
Apache Commons OverviewApache Commons Overview
Apache Commons Overviewghessler
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackRohit Sharma
 
Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Data Science Thailand
 

Similaire à elk_stack_alexander_szalonnas (20)

Alfresco monitoring with Nagios and ELK stack
Alfresco monitoring with Nagios and ELK stackAlfresco monitoring with Nagios and ELK stack
Alfresco monitoring with Nagios and ELK stack
 
2015 03-16-elk at-bsides
2015 03-16-elk at-bsides2015 03-16-elk at-bsides
2015 03-16-elk at-bsides
 
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
 
How bol.com makes sense of its logs, using the Elastic technology stack.
How bol.com makes sense of its logs, using the Elastic technology stack.How bol.com makes sense of its logs, using the Elastic technology stack.
How bol.com makes sense of its logs, using the Elastic technology stack.
 
Streaming Solutions for Real time problems
Streaming Solutions for Real time problemsStreaming Solutions for Real time problems
Streaming Solutions for Real time problems
 
Elk scilifelab
Elk scilifelabElk scilifelab
Elk scilifelab
 
How fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapeHow fluentd fits into the modern software landscape
How fluentd fits into the modern software landscape
 
Collect, summarize and notify of OpenStack's log
Collect, summarize and notify of OpenStack's logCollect, summarize and notify of OpenStack's log
Collect, summarize and notify of OpenStack's log
 
DevOpsDays Amsterdam 2016 workshop
DevOpsDays Amsterdam 2016 workshopDevOpsDays Amsterdam 2016 workshop
DevOpsDays Amsterdam 2016 workshop
 
Elk ruminating on logs
Elk ruminating on logsElk ruminating on logs
Elk ruminating on logs
 
Logging using ELK Stack for Microservices
Logging using ELK Stack for MicroservicesLogging using ELK Stack for Microservices
Logging using ELK Stack for Microservices
 
Streaming solutions for real time problems
Streaming solutions for real time problems Streaming solutions for real time problems
Streaming solutions for real time problems
 
A Survey of Event Processing Languages (EPLs), October 7, 2006
A Survey of Event Processing Languages (EPLs), October 7, 2006A Survey of Event Processing Languages (EPLs), October 7, 2006
A Survey of Event Processing Languages (EPLs), October 7, 2006
 
Elastic Meetup Belgium - December 2018
Elastic Meetup Belgium - December 2018Elastic Meetup Belgium - December 2018
Elastic Meetup Belgium - December 2018
 
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...
Serhii Matynenko "How to Deal with Logs, Migrating from Monolith Architecture...
 
Octo and the DevSecOps Evolution at Oracle by Ian Van Hoven
Octo and the DevSecOps Evolution at Oracle by Ian Van HovenOcto and the DevSecOps Evolution at Oracle by Ian Van Hoven
Octo and the DevSecOps Evolution at Oracle by Ian Van Hoven
 
Apache Commons Overview
Apache Commons OverviewApache Commons Overview
Apache Commons Overview
 
Centralized Logging System Using ELK Stack
Centralized Logging System Using ELK StackCentralized Logging System Using ELK Stack
Centralized Logging System Using ELK Stack
 
JOSA TechTalk: Realtime monitoring and alerts
JOSA TechTalk: Realtime monitoring and alerts JOSA TechTalk: Realtime monitoring and alerts
JOSA TechTalk: Realtime monitoring and alerts
 
Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics
 

elk_stack_alexander_szalonnas

  • 1. ELK stack Alexander Szalonnás a.szalonnas@accenture.com Elasticsearch + Logstash + Kibana (Centralized Log server) Follow me on Linkedin 
  • 2. Copyright © Accenture, LLP. All rights reserved. About me ELK stack Accenture Bratislava Alexander Szalonnás Current responsibilities: • Backend/ Frontend> • Code implementation (Java, JSF PrimeFaces) • Technical Architecture> • Support Operations Architecture • Support Development Architecture Java JSF DB stuffs
  • 3.  Logging  Splunk vs Open Source (ELK stack)  Logstash  Elasticsearch  Kibana  Getting started  Most asked/ upvoted questions and answers on Quora  DEMO  Q/A Copyright © Accenture, LLP. All rights reserved. Agenda ELK stack
  • 4.  Logging  Log (file) created by server/ app  Information about the requests, date, bytes served, user agent, etc. It’s variable.  Application runs  Produces errors, warnings, debug, telemetry, analytics events, and other information  How to make sense of it? Logging
  • 5. $plunk Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 6. Business as usual, until… Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 7. #Outage @03:00 AM Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 8. Massive RAGE Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 9. Copyright © Accenture, LLP. All rights reserved. ELK stack Or the old school style: Cat, grep, awk, cut via the terminal ... Good luck with that on 200 GB of unstructured logs. Think lots of coffee breaks. The fix: ELK stack (it is Open Source)
  • 10. Splunk vs. Open Source (ELK) Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 11.  Splunk  Widely used  Easy to use  Cross platform  Expensive  Complex set up process  ELK stack  Easy installation  Open Source  Extend functionality via plugins  Simple web interface  Prod, dev support and trainings paid Why should I use Splunk when I can use Open Source? ELK is of pretty new about google trends (since 2013 is used)
  • 12. ELK Stack? Copyright © Accenture, LLP. All rights reserved. ELK stack - Elasticsearch - Logstash - Kibana
  • 13. 1. collect data 2. parse/ filter 3. send data Copyright © Accenture, LLP. All rights reserved. logstash ELK stack Logstash is part of the family of
  • 14. input parse/ filter output logstash architecture Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 15. 1. collect data Logstash input file Rsyslog tcp udp redis log4j and more … Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 16. Sample conf input{ tcp{ type=> “server1” host=> “192.168.1.1” port=> “5555” } } Copyright © Accenture, LLP. All rights reserved. ELK stack input{ tcp{ type=> “server1” host=> “192.168.1.1” port=> “5555” } } file{ type => "my-log" path => [ "C:/dev/Log/*.log*" ] } When 1 input When multiple inputs
  • 17. 2. parse/ filter grok grep json mutate csv Geoip (by Maxmind db) xml key/ value Logstash filters Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 18. Grok filter (example) Copyright © Accenture, LLP. All rights reserved. ELK stack
  • 19. Logstash output stdout statsd tcp zmqfile elastics earch graphite Copyright © Accenture, LLP. All rights reserved. ELK stack 3. send data and more …
  • 20. Copyright © Accenture, LLP. All rights reserved. ELK stack logstash => elasticsearch sample
  • 21. 1. JSON based REST API 2. Schema-less database 3. Indexes every single field 4. Full text search 5. Relational DB/ JSON document (“NoSQL” world) Copyright © Accenture, LLP. All rights reserved. elasticsearch ELK stack Distributed RESTful search server
  • 22. 1. Clean and simple UI 2. Data discovery 2. Fully customizable 3. Boostrap based Copyright © Accenture, LLP. All rights reserved. Kibana ELK stack Web UI for the logs Kibana is part of the family of
  • 23. Kibana when it is heavily set up
  • 24. 1) Download Elasticsearch (ES)/ Logstash/ Kibana to your computer. The download links on the “Sources” slide of the presentation*. 2) Simply run ES as is, worry about config later. 3) Follow logstash cookbook to get started. 4) Setup some inputs. 5) Install kibana plugin in ES. 6) Open your browser and type “host:port” where kibana is running and try out the fresh log server. Getting started
  • 25. Copyright © Accenture, LLP. All rights reserved. Demo scenario ELK stack logstash elasticsearch kibana Sample app generated log file
  • 26. Copyright © Accenture, LLP. All rights reserved. Most asked/ voted Q/ As on Quora* ELK stack *www.Quora.com is a question-and-answer website where (mostly IT) questions are created, answered, edited and organized by its community of users. It had around **50 Million visitors in Jan 2015. Who are the biggest direct competitors to Splunk? - “ELK is a free alternative to Splunk. Needless to say, the officiall support ELK (Elasticsearch, Logstash, Kibana) stack is an open-source alternative to Splunk's log-forwader/indexer/dashboard combo.” Can Elasticsearch be used to replace your business's existing business intelligence system? - “Works pretty well but it has a downside, the security shield is still very nascent but also the releases are coming quickly so it is improved over the time.” What are the most latest recommended tools and technologies for real time analysis and visualization using Twitter data? - “The ELK (ElasticSearch) stack is an open source option to do real time search on Twitter data. Logstash has a plugin for Twitter that can be used to collect, parse and store the data.”
  • 27. Copyright © Accenture, LLP. All rights reserved. Q/ A ELK stack
  • 28. Copyright © Accenture, LLP. All rights reserved. Sources ELK stack * ELK stack tools to download- http://www.elasticsearch.org/overview/elkdownloads/ Installation guide for Windows - https://community.ulyaoth.net/threads/how-to-install-logstash-on-a-windows-server-with-ki bana-in-iis.17 / Installation guide for Linux- http:// everythingshouldbevirtual.com/highly-available-elk-elasticsearch-logstash-kibana-setup Logstash documentation- http://logstash.net/docs/1.4.2/ Kibana documentation- http://www.elasticsearch.org/guide/en/kibana/current/index.html Elasticsearch documentation- http://www.elasticsearch.org/guide/ **Quora number of visitors- http://www.similarweb.com/website/quora.com
  • 29. Copyright © Accenture, LLP. All rights reserved. Multiple schema example (no demo) ELK stack logstash elasticsearch kibana Apache server IIS server Jboss server TCP TCP TCP