SlideShare a Scribd company logo
1 of 19
Download to read offline
KIT – University of the State of Baden-Wuerttemberg and
National Research Center of the Helmholtz Association
INSTITUTE FOR APPLIED COMPUTER SCIENCE (IAI), FACULTY OF INFORMATICS
STEINBUCH COMPUTING CENTER (SCC)
www.kit.edu
ELK Stack:
Elasticsearch, Logstash and Kibana
Kajorn Pathomkeerati (IAI)
Samuel Ambroj Peréz (SCC)
Institute for Applied Computer Science, Faculty of Informatics
2
Extra: Sense (Beta)
Extension for Google Chrome, available in Chrome Web Store
User-friendly console
Designed for Elasticsearch
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Text Highlight,
Auto Complete
Individual Request
Indentation
Response
Request
Institute for Applied Computer Science, Faculty of Informatics
3
KIBANA
Visualization Tool For Elasticsearch
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
4
Kibana - Overview
Full integration with Elasticsearch
Easy Configuration
Import & Discovery
Time-based Data
Real-time Discovery
Visualization
Easy to customize
Fast analytic
Dashboard
Connecting the visualizations
Easy to share as <iframe> or URL
Open source. Community driven. Apache licensed.
More Info
https://www.elastic.co/products/kibana
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
5
Kibana- Live Demo
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
KIBANA GOES LIVE
Institute for Applied Computer Science, Faculty of Informatics
6
Kibana - Summary
Advantages
Easy visualizing
Various visualizations available
Fully integrated with Elasticsearch
Limitations
No custom aggregation supported
No custom request
Event-based data only
Elasticsearch data only
Dashboard built on saved visualizations
Dashboard filter affects all visualizations
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
7
ELASTICSEARCH
& SQL DATABASE
Use Case
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
8
Overview
Relational Database:
Traditional SQL Databases
Complex SQL-Statements needed for some analytics
Still widely used
Elasticsearch:
Non-relational Databases - NoSQL
As-a-service
Accessible via HTTP
Relational DBà Non-relational DB
Data Migration
Using plugin : JDBC River plugin
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
9
JDBC River
An Elasticsearch Plugin
Enabling data migration
SQL Database à Elasticsearch
Import – function
Using SQL statement to filter data
Using a JDBC connector
Supports native connectors
MySQL, Postgresql, ...
Note:
River plugin is deprecated since ES 1.5 (Currently ~1.7)
Still supported by community
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
10
JDBC River - Parameters
$ curl –XPUT 'localhost:9200/_river/type_name/_meta' -d
'{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://localhost",
"user" : "db_user",
"password" : "db_user_password",
"sql" : "SELECT * FROM table_name",
"index": "es_index",
"type" : "es_type",
"type_mapping": { … }
}
}'
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Easy import
Filter Data by SQL-Statement
More Info:
https://github.com/jprante/elasticsearch-jdbc
Institute for Applied Computer Science, Faculty of Informatics
11
Experimental Scenario
Input:
A dump file for MySQL
Output:
Visualizations in Kibana
Question: How?
Answer: following instructions
1. Prepare MySQL Server
2. Prepare JDBC River plugin for MySQL
3. Import data to Elasticsearch
4. Visualizing with Kibana
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
12
MySQL Server - Installation
Required Components / File:
MySQL Server
MySQL Client
An SQL dump File
Instructions:
1. Set up MySQL Server & Client
$ aptitude install mysql-server mysql-client
2. Create a database
$ mysql -u root –p
> create database db_name;
> exit
3. Restore the database with dump file
$ mysql -u root –p db_name < dump_file.sql
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
13
JDBC River - Installation
Required Components:
JDBC River Plugin
JDBC Driver (Connector)
Instructions:
1. Download & install JDBC River plugin
2. Download & install a JDBC driver
3. Restart Elasticsearch
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
14
JDBC River - Installation (2)
Download & install JDBC River plugin
$ cd /usr/share/elasticsearch
$ ./bin/plugin --install river-jdbc -url '
http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-
river-jdbc/1.5.0.5/elasticsearch-river-jdbc-1.5.0.5-plugin.zip'
Download & install a JDBC connector
(found in MySQL JDBC driver)
$ cd /usr/share/elasticsearch/plugins/
$ wget
http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-
java-5.1.36.tar.gz
$ tar -zxvf mysql-connector-java-5.1.36.tar.gz --wildcards '*.jar‘
$ mv mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar
./river-jdbc/
$ rm -rf mysql-*
Restart Elasticsearch Service
$ /etc/init.d/elasticsearch stop
$ /etc/init.d/elasticsearch start
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
15
Import Data
Define JDBC River parameters
$ curl -XPUT 'localhost:9200/_river/tweet/_meta' -d
'{
"type" : "jdbc",
"jdbc" : {
"url" : "jdbc:mysql://localhost:3306/tweetsql",
"user" : "root",
"password" : "root",
"sql" : "select tid as _id, tweet, hashtag.hashtag, lang, created_at
from tweet
left join hashtag_tweet on tweet.id = hashtag_tweet.tweet_id
left join hashtag on hashtag.id = hashtag_tweet.hashtag_id",
"index": "tweetsql",
"type" : "tweet",
"type_mapping": {
"tweet": {
"dynamic": true,
"properties": {
"created_at":{
"type": "date",
"format": "EEE MMM dd HH:mm:ss Z yyyy"
}
}
}
}
}
}'
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
16
Visualization in Kibana
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
17
Plugins
Other River Plugins:
Google Drive River Plugin
Dropbox River Plugin
Wikipedia River Plugin
…
Cloud Service Discovery Plugins
AWS Cloud Plugin, GCE Cloud Plugin, …
Analysis Plugins
ICU Analysis Plugin, Stempel Analysis Plugin, …
There are more plugins:
https://www.elastic.co/guide/en/elasticsearch/
reference/current/modules-plugins.html
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
18
Exercise - MySQL Database
Given:
A dump file contains tweet data
Goal:
Visualizations in Kibana
Example for visualizations
Number of tweets in total
Number of tweets by a language
Top hashtags / tweet-languages
etc.
Create a dashboard with various visualizations
Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Institute for Applied Computer Science, Faculty of Informatics
19 Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
Question ?

More Related Content

Similar to Elk-slides-pdf.pdf

Writing & Using Web Services
Writing & Using Web ServicesWriting & Using Web Services
Writing & Using Web ServicesRajarshi Guha
 
The Cloud-natives are RESTless @ JavaOne
The Cloud-natives are RESTless @ JavaOneThe Cloud-natives are RESTless @ JavaOne
The Cloud-natives are RESTless @ JavaOneKonrad Malawski
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012Lucas Jellema
 
Auto scaling with Ruby, AWS, Jenkins and Redis
Auto scaling with Ruby, AWS, Jenkins and RedisAuto scaling with Ruby, AWS, Jenkins and Redis
Auto scaling with Ruby, AWS, Jenkins and RedisYi Hsuan (Jeddie) Chuang
 
Database design i_-_1_dl300
Database design i_-_1_dl300Database design i_-_1_dl300
Database design i_-_1_dl300KOI Lastone
 
Not Only Streams for Akademia JLabs
Not Only Streams for Akademia JLabsNot Only Streams for Akademia JLabs
Not Only Streams for Akademia JLabsKonrad Malawski
 
Query Your Streaming Data on Kafka using SQL: Why, How, and What
Query Your Streaming Data on Kafka using SQL: Why, How, and WhatQuery Your Streaming Data on Kafka using SQL: Why, How, and What
Query Your Streaming Data on Kafka using SQL: Why, How, and WhatHostedbyConfluent
 
Spring Framework Essentials
Spring Framework EssentialsSpring Framework Essentials
Spring Framework EssentialsEdward Goikhman
 
Java 6 [Mustang] - Features and Enchantments
Java 6 [Mustang] - Features and Enchantments Java 6 [Mustang] - Features and Enchantments
Java 6 [Mustang] - Features and Enchantments Pavel Kaminsky
 
Deep Dive Java 17 Devoxx UK
Deep Dive Java 17 Devoxx UKDeep Dive Java 17 Devoxx UK
Deep Dive Java 17 Devoxx UKJosé Paumard
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...Amazon Web Services
 
FIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE
 
20151010 my sq-landjavav2a
20151010 my sq-landjavav2a20151010 my sq-landjavav2a
20151010 my sq-landjavav2aIvan Ma
 
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021StreamNative
 
Seattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js WorkshopSeattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js WorkshopJimmy Guerrero
 
End-to-end HTML5 APIs - The Geek Gathering 2013
End-to-end HTML5 APIs - The Geek Gathering 2013End-to-end HTML5 APIs - The Geek Gathering 2013
End-to-end HTML5 APIs - The Geek Gathering 2013Alexandre Morgaut
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10Kenny Gryp
 

Similar to Elk-slides-pdf.pdf (20)

Writing & Using Web Services
Writing & Using Web ServicesWriting & Using Web Services
Writing & Using Web Services
 
The Cloud-natives are RESTless @ JavaOne
The Cloud-natives are RESTless @ JavaOneThe Cloud-natives are RESTless @ JavaOne
The Cloud-natives are RESTless @ JavaOne
 
The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012The Very Very Latest in Database Development - Oracle Open World 2012
The Very Very Latest in Database Development - Oracle Open World 2012
 
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
The Very Very Latest In Database Development - Lucas Jellema - Oracle OpenWor...
 
Auto scaling with Ruby, AWS, Jenkins and Redis
Auto scaling with Ruby, AWS, Jenkins and RedisAuto scaling with Ruby, AWS, Jenkins and Redis
Auto scaling with Ruby, AWS, Jenkins and Redis
 
Log analysis with elastic stack
Log analysis with elastic stackLog analysis with elastic stack
Log analysis with elastic stack
 
Database design i_-_1_dl300
Database design i_-_1_dl300Database design i_-_1_dl300
Database design i_-_1_dl300
 
Not Only Streams for Akademia JLabs
Not Only Streams for Akademia JLabsNot Only Streams for Akademia JLabs
Not Only Streams for Akademia JLabs
 
Query Your Streaming Data on Kafka using SQL: Why, How, and What
Query Your Streaming Data on Kafka using SQL: Why, How, and WhatQuery Your Streaming Data on Kafka using SQL: Why, How, and What
Query Your Streaming Data on Kafka using SQL: Why, How, and What
 
Spring Framework Essentials
Spring Framework EssentialsSpring Framework Essentials
Spring Framework Essentials
 
Java 6 [Mustang] - Features and Enchantments
Java 6 [Mustang] - Features and Enchantments Java 6 [Mustang] - Features and Enchantments
Java 6 [Mustang] - Features and Enchantments
 
Jdbc
JdbcJdbc
Jdbc
 
Deep Dive Java 17 Devoxx UK
Deep Dive Java 17 Devoxx UKDeep Dive Java 17 Devoxx UK
Deep Dive Java 17 Devoxx UK
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
FIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart SystemsFIWARE Wednesday Webinars - Short Term History within Smart Systems
FIWARE Wednesday Webinars - Short Term History within Smart Systems
 
20151010 my sq-landjavav2a
20151010 my sq-landjavav2a20151010 my sq-landjavav2a
20151010 my sq-landjavav2a
 
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
 
Seattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js WorkshopSeattle StrongLoop Node.js Workshop
Seattle StrongLoop Node.js Workshop
 
End-to-end HTML5 APIs - The Geek Gathering 2013
End-to-end HTML5 APIs - The Geek Gathering 2013End-to-end HTML5 APIs - The Geek Gathering 2013
End-to-end HTML5 APIs - The Geek Gathering 2013
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
 

Recently uploaded

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Servicejennyeacort
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 

Recently uploaded (20)

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts ServiceCall Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
Call Girls In Noida City Center Metro 24/7✡️9711147426✡️ Escorts Service
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
Russian Call Girls Dwarka Sector 15 💓 Delhi 9999965857 @Sabina Modi VVIP MODE...
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 

Elk-slides-pdf.pdf

  • 1. KIT – University of the State of Baden-Wuerttemberg and National Research Center of the Helmholtz Association INSTITUTE FOR APPLIED COMPUTER SCIENCE (IAI), FACULTY OF INFORMATICS STEINBUCH COMPUTING CENTER (SCC) www.kit.edu ELK Stack: Elasticsearch, Logstash and Kibana Kajorn Pathomkeerati (IAI) Samuel Ambroj Peréz (SCC)
  • 2. Institute for Applied Computer Science, Faculty of Informatics 2 Extra: Sense (Beta) Extension for Google Chrome, available in Chrome Web Store User-friendly console Designed for Elasticsearch Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana Text Highlight, Auto Complete Individual Request Indentation Response Request
  • 3. Institute for Applied Computer Science, Faculty of Informatics 3 KIBANA Visualization Tool For Elasticsearch Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 4. Institute for Applied Computer Science, Faculty of Informatics 4 Kibana - Overview Full integration with Elasticsearch Easy Configuration Import & Discovery Time-based Data Real-time Discovery Visualization Easy to customize Fast analytic Dashboard Connecting the visualizations Easy to share as <iframe> or URL Open source. Community driven. Apache licensed. More Info https://www.elastic.co/products/kibana Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 5. Institute for Applied Computer Science, Faculty of Informatics 5 Kibana- Live Demo Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana KIBANA GOES LIVE
  • 6. Institute for Applied Computer Science, Faculty of Informatics 6 Kibana - Summary Advantages Easy visualizing Various visualizations available Fully integrated with Elasticsearch Limitations No custom aggregation supported No custom request Event-based data only Elasticsearch data only Dashboard built on saved visualizations Dashboard filter affects all visualizations Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 7. Institute for Applied Computer Science, Faculty of Informatics 7 ELASTICSEARCH & SQL DATABASE Use Case Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 8. Institute for Applied Computer Science, Faculty of Informatics 8 Overview Relational Database: Traditional SQL Databases Complex SQL-Statements needed for some analytics Still widely used Elasticsearch: Non-relational Databases - NoSQL As-a-service Accessible via HTTP Relational DBà Non-relational DB Data Migration Using plugin : JDBC River plugin Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 9. Institute for Applied Computer Science, Faculty of Informatics 9 JDBC River An Elasticsearch Plugin Enabling data migration SQL Database à Elasticsearch Import – function Using SQL statement to filter data Using a JDBC connector Supports native connectors MySQL, Postgresql, ... Note: River plugin is deprecated since ES 1.5 (Currently ~1.7) Still supported by community Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 10. Institute for Applied Computer Science, Faculty of Informatics 10 JDBC River - Parameters $ curl –XPUT 'localhost:9200/_river/type_name/_meta' -d '{ "type" : "jdbc", "jdbc" : { "url" : "jdbc:mysql://localhost", "user" : "db_user", "password" : "db_user_password", "sql" : "SELECT * FROM table_name", "index": "es_index", "type" : "es_type", "type_mapping": { … } } }' Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana Easy import Filter Data by SQL-Statement More Info: https://github.com/jprante/elasticsearch-jdbc
  • 11. Institute for Applied Computer Science, Faculty of Informatics 11 Experimental Scenario Input: A dump file for MySQL Output: Visualizations in Kibana Question: How? Answer: following instructions 1. Prepare MySQL Server 2. Prepare JDBC River plugin for MySQL 3. Import data to Elasticsearch 4. Visualizing with Kibana Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 12. Institute for Applied Computer Science, Faculty of Informatics 12 MySQL Server - Installation Required Components / File: MySQL Server MySQL Client An SQL dump File Instructions: 1. Set up MySQL Server & Client $ aptitude install mysql-server mysql-client 2. Create a database $ mysql -u root –p > create database db_name; > exit 3. Restore the database with dump file $ mysql -u root –p db_name < dump_file.sql Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 13. Institute for Applied Computer Science, Faculty of Informatics 13 JDBC River - Installation Required Components: JDBC River Plugin JDBC Driver (Connector) Instructions: 1. Download & install JDBC River plugin 2. Download & install a JDBC driver 3. Restart Elasticsearch Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 14. Institute for Applied Computer Science, Faculty of Informatics 14 JDBC River - Installation (2) Download & install JDBC River plugin $ cd /usr/share/elasticsearch $ ./bin/plugin --install river-jdbc -url ' http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch- river-jdbc/1.5.0.5/elasticsearch-river-jdbc-1.5.0.5-plugin.zip' Download & install a JDBC connector (found in MySQL JDBC driver) $ cd /usr/share/elasticsearch/plugins/ $ wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector- java-5.1.36.tar.gz $ tar -zxvf mysql-connector-java-5.1.36.tar.gz --wildcards '*.jar‘ $ mv mysql-connector-java-5.1.36/mysql-connector-java-5.1.36-bin.jar ./river-jdbc/ $ rm -rf mysql-* Restart Elasticsearch Service $ /etc/init.d/elasticsearch stop $ /etc/init.d/elasticsearch start Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 15. Institute for Applied Computer Science, Faculty of Informatics 15 Import Data Define JDBC River parameters $ curl -XPUT 'localhost:9200/_river/tweet/_meta' -d '{ "type" : "jdbc", "jdbc" : { "url" : "jdbc:mysql://localhost:3306/tweetsql", "user" : "root", "password" : "root", "sql" : "select tid as _id, tweet, hashtag.hashtag, lang, created_at from tweet left join hashtag_tweet on tweet.id = hashtag_tweet.tweet_id left join hashtag on hashtag.id = hashtag_tweet.hashtag_id", "index": "tweetsql", "type" : "tweet", "type_mapping": { "tweet": { "dynamic": true, "properties": { "created_at":{ "type": "date", "format": "EEE MMM dd HH:mm:ss Z yyyy" } } } } } }' Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 16. Institute for Applied Computer Science, Faculty of Informatics 16 Visualization in Kibana Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 17. Institute for Applied Computer Science, Faculty of Informatics 17 Plugins Other River Plugins: Google Drive River Plugin Dropbox River Plugin Wikipedia River Plugin … Cloud Service Discovery Plugins AWS Cloud Plugin, GCE Cloud Plugin, … Analysis Plugins ICU Analysis Plugin, Stempel Analysis Plugin, … There are more plugins: https://www.elastic.co/guide/en/elasticsearch/ reference/current/modules-plugins.html Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 18. Institute for Applied Computer Science, Faculty of Informatics 18 Exercise - MySQL Database Given: A dump file contains tweet data Goal: Visualizations in Kibana Example for visualizations Number of tweets in total Number of tweets by a language Top hashtags / tweet-languages etc. Create a dashboard with various visualizations Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana
  • 19. Institute for Applied Computer Science, Faculty of Informatics 19 Kajorn Pathomkeerati - ELK Stack: Elasticsearch Logstash Kibana Question ?