Documente Academic
Documente Profesional
Documente Cultură
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
6.5.0
elastic.co/training
6.x.x
Kibana Data Analyst
Course: Kibana Data Analyst
Version 6.5.0
© 2015-2019 Elasticsearch BV. All rights reserved. Decompiling, copying, publishing and/or distribution without written consent of Elasticsearch BV is
strictly prohibited.
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Introductions
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
About This Training
• Environment
• Introductions
• Agenda...
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
3 Kibana Visualization
a
or
6
H
Kibana Management
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
3 Kibana Visualization
6 Kibana Management
Lesson 1
a
Kibana
or
H
da
To
-A
Fundamentals
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Introduction to Kibana
The Elastic Stack
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ Single purpose data shippers
da
To
-A
9
Elasticsearch or Logstash
Li
n
lia
Ju
a
or
H
da
To
‒ analyze 9
-A
01
-2
ar
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
1. Genesis
Beats
2. Ingest 3. Store
Kibana
Elasticsearch
a
Discovery
or
Visualize
H
Dashboard
da
Graph
To
-A
9
01
-2
ar
M
Logstash
6-
4. Search &
-2
o
Analyze
an
zc
Li
n
lia
Ju
A row in a table
{ <?xml version="1.0" encoding="UTF-8"?>
"title": "Fighting Ebola with <root>
Elastic", <author>
a
"category": "User Stories", <first_name>Emily</first_name>
or
H
"author": {
da
<last_name>Mosher</last_name>
To
"first_name": "Emily", 9
-A
</author>
"last_name": "Mosher" <category>User Stories</category>
01
-2
ar
} </root>
-2
JSON XML
o
an
zc
Li
n
lia
Ju
a
or
H
da
4 Tom 44 DE B
To
-A
9
01
5 John 40 US B
-2
ar
M
6-
6 Emma 26 US B
-2
o
an
zc
Li
n
lia
Ju
Elasticsearch
{
{
{
"User": "Bill", "User": "Marie", "User": "Claire",
"Age": 30, "Age": 32, "Age": 32,
"Country": "FR", "Country": "US", "Country": "US",
"Category": "A" "Category": "B" "Category": "A"
} } }
a
or
H
da
To
-A
{ { {
9
01
} } }
n
lia
Ju
{
"cuisine": "French",
a
"ingredients": "Cheese, flour, butter, eggs, milk, nutmeg",
or
H
da
"time_in_min": 50,
To
"level": "easy" 9
-A
}
01
-2
{
Li
n
lia
Beats Elasticsearch
a
or
H
da
To
-A
9
01
-2
ar
M
Logstash
zc
Li
n
lia
Ju
cooking_recipes
Elasticsearch Kibana
a
or
H
da
To
9
-A tweets*
01
-2
ar
M
cooking_recipes
#vacation
#dream
Elasticsearch
{
"message_id": 1,
"user.first_name": "John",
"user.last_name": "Smith",
a
"user.geo.country": "Germany",
or
H
da
"user.geo.city": "Berlin",
To
"user.nb_of_followers": 130, 9
-A
user_messages
01
"number_of_subjects": 2,
M
6-
"likes": 32,
-2
o
an
}
Germany
Berlin
130 Followers
John Smith
.....
18 likes
user_messages
a
or
{
H
da
"message_id": 41,
To
-A "first_name": "John",
9
01
"last_name": "Smith",
-2
ar
M
"geo.city": "Berlin",
o
an
"nb_of_followers": 130,
zc
Li
n
"average_like": 87.45,
lia
Ju
"salary": 120000,
"occupation": "Sales"
}
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
• In Kibana, an index pattern can be created to target a
H
da
specific set of indices To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
{
or
H
da
"heartbeat": 123,
To
"timestamp": "Mon, 24 Dec 2018 00:23:28 GMT"9
-A
}
01
-2
ar
M
6-
-2
{
o
an
zc
"first_name": "Bill",
Li
n
"last_name": "Smith",
lia
Ju
"age": 27,
"country": "Mongolia"
}
a
or
H
da
To
• The discover interface allows you to explore documents in 9
-A
01
Elasticsearch
-2
ar
M
6-
-2
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
‒ are there any messages about Netflix? 01
9
-A
-2
a
or
H
for the queried values
da
To
-A
9
01
Bill
6-
1 30 FR A
-2
o
an
2 Marie 32 US A
zc
Li
n
3 Claire 32 US A
lia
Ju
4 John 40 DE B
5 John 44 US B
6 Emma 44 US B
john AND us
a
or
H
da
To
‒ so that Elasticsearch will only query the specified fields 9
-A
01
-2
ar
M
6-
-2
user:john country:us
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
1 Bill 30 FR A
6-
-2
o
2 Marie 32 US A
an
zc
Li
n
3 Claire 32 US A
lia
Ju
4 John 40 DE B
5 John 44 US B
6 Emma 44 US B
a
or
H
da
To
‒ greater than (>) 9
-A
01
-2
ar
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
some of the fields
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
• In the Elastic Stack we call the equivalent functionality a 9
-A
01
search aggregation
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
4 Tom 44 DE B
To
-A
9
01
5 John 40 US B
-2
ar
M
6-
6 Emma 26 US B
-2
o
an
zc
Li
n
lia
Ju
Elasticsearch
users
{
{
{
"User": "Bill", "User": "Marie", "User": "Claire",
"Age": 30, "Age": 32, "Age": 32,
"Country": "FR", "Country": "US", "Country": "US",
"Category": "A" "Category": "A" "Category": "A"
} } }
a
or
H
da
To
-A
9
01
-2
ar
{ { {
M
6-
} } }
a
or
H
da
To
-A
‒ or multiple values:
9
01
-2
ar
M
‒ percentiles, percentile_ranks
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
Rows Values
o
AVG of age
an
zc
Li
n
lia
Ju
AVG of age 34
Elasticsearch
{
"aggregations": {
"avg_of_age": {
"avg": {
{
{
{ "field": "age"
"User": "Bill", "User": "Marie", "User": "Claire", }
"Age": 30, "Age": 32, "Age": 32, }
"Country": "FR", "Country": "US", "Country": "US", }
"Category": "A" "Category": "A" "Category": "A" }
} } }
a
or
H
da
To
-A
9
01
-2
ar
{ { {
M
6-
"aggregations" : {
n
lia
} } } "value" : 34.0
}
}
a
documents inside the bucket
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
A 3
n
category B 3
a
"buckets": [
or
Count: 3
H
da
{
To
9
-A "key": "A",
01
"doc_count": 3
-2
ar
},
M
{ { {
6-
-2
{
"User": "Tom", "User": "John", "User": "Emma",
o
an
"key": "B",
zc
"doc_count": 3
n
a
or
H
da
To
-A
9
01
-2
ar
COUNT AVG of
M
6-
category
-2
Order ASC by
Ju
a
"buckets": [
or
Avg of age: 31.33
H
da
{
To
9
-A
"key": "A",
"doc_count": 3,
01
-2
"avg_age_per_category": {
ar
{ { {
M
"value": 31.33
6-
-2
},
Li
{
lia
"key": "B",
} } } "doc_count": 3,
Bucket: B "avg_age_per_category": {
Count: 3 "value": 36.66
Avg of age: 36.66 }
} ] } }
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !58
distributing without written permission is strictly prohibited
Nesting Rows/Columns in a Pivot Table
id user age country category
1 Bill 30 FR A
2 Marie 32 US A
3 Claire 32 US A
4 Tom 44 DE B
5 John 40 US B
6 Emma 26 US B
a
or
H
da
COUNT AVG of
To
-A category country
of age age
9
01
Rows Values
-2
ar
M
6-
A FR 1 30
-2
category
Li
US 2 32
n
lia
Ju
a
or
Bucket: B
H
da
To
Count: 3
-A
9
01
Bucket: DE Bucket: US
-2
ar
M
Count: 1 Count: 2
6-
-2
{ { {
an
zc
Metrics Aggregation 6
a
or
Count of Documents
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Metrics
2
Aggregation
a
or
H
da
To
1 01
9
-A
-2
ar
M
6-
-2
0
o
an
zc
Li
US FR DE
n
lia
Ju
Bucket Aggregation
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !62
distributing without written permission is strictly prohibited
Sub-bucket Aggregation
Sub-Bucket Aggregation
4
A
3 B
Metrics
2
Aggregation
a
or
H
da
To
1 01
9
-A
-2
ar
M
6-
-2
0
o
an
zc
Li
US FR DE
n
lia
Ju
Bucket Aggregation
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !63
distributing without written permission is strictly prohibited
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Lesson Review
Summary
• Kibana renders visualizations using the results of
Elasticsearch aggregations
• There are two main types of aggregations:
‒ metrics
‒ bucket
• Metrics aggregations are used to compute numeric values
a
or
H
da
• Bucket aggregations are used to group data together
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
9
-A B
01
-2
ar
M
6-
US
-2
o
an
zc
Li
n
lia
FR
Ju
DE
2 Kibana Search
3 Kibana Visualization
6 Kibana Management
Lesson 2
a
Kibana Search
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
The Query Bar
Improving Search
• Search is extremely important
‒ almost every page in Kibana will have a search bar
• But, search is not limited to searching for a specific word
‒ or searching over a specific interval
• Search may involve:
‒ fuzzy data
a
or
H
da
To
‒ using regex or wildcard to search over specific patterns 9
-A
01
-2
ar
a
or
H
da
Edit distance = 1 Edit distance = 2
To
-A
9
01
“Mario” “Eifele”
-2
ar
M
6-
-2
o
o e f
an
zc
Li
n
lia
Ju
Marie e
“Eiffel”
a
or
Marie
H
Mario~1
da
To
-A
...
9
01
-2
ar
M
6-
-2
Eiffel
o
Eifele~2
an
zc
Li
n
lia
...
Ju
Mario~auto Marie
...
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !72
distributing without written permission is strictly prohibited
Fuzzy Search
• Be aware that fuzzy search is expensive
‒ it will not be as fast as regular searches
‒ and it can crash your cluster
• Great for incident analysis
• Not so great for common queries
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
‒ *, which matches any character sequence (including empty ones)
9
01
-2
ar
M
a
or
Marine
H
da
To
-A
• Let's search for every word that starts with Mar?a, in
9
01
-2
ar
Marea
Li
n
lia
Ju
Mar?a Maria
Marya
• For example, you can use it to find all the documents that
contain a phone number from France:
‒ starts with +33 followed by 9 numbers
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
/.*+33[0-9]{9}.*/
Li
n
...
a
or
H
da
To
‒ Always avoid leading patterns 9
-A
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
subjects:instafood OR first_name:john^2
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
a
or
H
‒ field names
da
To
-A
9
01
‒ operators
-2
ar
M
6-
-2
‒ values
o
an
zc
Li
n
lia
Ju
a
or
H
da
that simplifies the Lucene query syntax
To
-A
9
01
-2
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
‒ a search for "B6IAWRLOLB" should not find documents that -A
9
01
contain "B6IAWRLOLb"
-2
ar
M
6-
-2
o
• Why?
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
wow 1
To
Wow! I love this city, -A
1 Paris is beautiful! i 1, 2
9
01
-2
ar
love 1, 2
M
6-
-2
this 1
o
an
city 1
n
lia
Ju
paris 1, 2, 3
3 Paris is 1
so 1
beautiful 1
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !87
distributing without written permission is strictly prohibited
Query Analysis
• When querying an analyzed field, by default, the query will
also be analyzed
‒ and then compared to the tokens of the indexed documents
Query
Tokens ID
The city of Paris Analysis wow 1
i 1, 2
a
or
H
love 1, 2
da
To
-A this 1
9
01
-2
paris 1, 2
o
an
zc
Li
is 1
n
lia
Ju
so 1
1 2 beautiful 1
Response
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !88
distributing without written permission is strictly prohibited
Exact Match
• For exact matches, the data is not going to be analyzed
‒ no normalization will be done
• Let's index documents in Elasticsearch:
Tokens ID
a
Paris is beautiful!
or
H
da
city, Paris is 1
To
-A beautiful!
9
01
2 I love Paris!
-2
ar
M
6-
-2
I love Paris! 2
o
an
zc
Li
3 Paris
n
lia
Ju
Paris 3
Tokens ID
a
or
H
da
Paris Wow! I love this
To
-A
city, Paris is 1
9
3
01
beautiful!
-2
ar
M
6-
-2
o
an
zc
I love Paris! 2
Li
n
lia
Ju
paris
Paris 3
a
or
H
da
• When the field is only searchable it means that the field is
To
-A
designed for full text search
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
• In Kibana, the index patterns view shows this information
H
da
for each of the fields To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
"Index Pattern"
a
or
GET users*/_search {
H
da
{ "query": {
To
"query": { -A "match": {
9
01
"TYPE_OF_QUERY": { "subjects": {
-2
ar
} }
o
an
} }
zc
Li
} }
n
lia
Ju
}
Type of query
• Using the query DSL syntax, you would write the following:
GET user_messages*/_search
a
or
H
{
da
To
"query":{
-A
"match": {
9
01
-2
"subjects": {
ar
M
6-
}
zc
Li
}
n
lia
Ju
}
}
GET user_messages*/_search
{
a
"query":{
or
H
"match": {
da
To
"subjects": { 9
-A
01
"operator": "and"
M
6-
-2
}
o
an
zc
}
Li
n
lia
}
Ju
a
or
H
da
GET user_messages*/_search
To
{ -A
9
01
"query":{
-2
ar
M
"match": {
6-
-2
"subjects": {
o
an
"minimum_should_match": 2
n
lia
Ju
}
}
}
}
a
or
H
‒ ...
da
To
-A
9
01
‒ https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
an
zc
Li
n
lia
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
• Often times, you don't want to apply all of them together 9
-A
01
-2
ar
query bar
Ju
a
or
H
‒ dropped
da
To
-A
9
01
‒ edited
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
current/query-dsl-range-query.html
H
da
To
-A
‒ match_phrase: https://www.elastic.co/guide/en/elasticsearch/
9
01
-2
ar
reference/current/query-dsl-match-query-phrase.html
M
6-
-2
o
an
zc
‒ exists: https://www.elastic.co/guide/en/elasticsearch/reference/
Li
n
lia
current/query-dsl-exists-query.html
Ju
‒ ...
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ the query DSL
da
To
-A
9
01
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
3 Kibana Visualization
6 Kibana Management
Lesson 3
a
Kibana
or
H
da
To
-A
Visualization
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Lab 8
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Pipeline Aggregations
A Simple Problem
• New users are referenced every months:
‒ How would you build the cumulative sum of this chart?
400
300
Number of users
a
or
H
da
To
200 -A
9
01
-2
ar
M
6-
-2
o
an
100
zc
Li
n
lia
Ju
0
June
April
Mai
January
September
July
August
November
December
October
400 2000
a
or
H
da
To
200 -A 1000
9
01
-2
ar
M
6-
-2
o
an
100 500
zc
Li
n
lia
Ju
0 0
June
April
Mai
January
September
July
August
November
December
October
a
or
H
da
To
• Let's dive into some of the most complex pipeline 9
-A
01
aggregations...
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
‒ ... 9
-A
01
-2
ar
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
Category A US 2 32
-2
ar
M
6-
-2
o
an
Category A FR 1 30
zc
Li
n
lia
Ju
Category B US 2 33
Category B DE 1 44
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !146
distributing without written permission is strictly prohibited
Pivot Table
• A bucket aggregation of type term need to be executed
on the category field first
• A sub-bucket aggregation of type term need to be
executed on the country field
• A metric aggregation of type count (default metric
aggregation) need to be applied on all generated buckets
• Another metric aggregation of type average on the age
a
or
H
da
field need to be applied on all the generated buckets
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Count
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Category Count
a
or
H
Category A 3
da
To
-A
9
01
-2
ar
M
6-
-2
o
Category B 3
an
zc
Li
n
lia
Ju
Category A US 2
a
or
H
da
To
Category A FR 9
-A 1
01
-2
ar
M
Category B US 2
6-
-2
o
an
zc
Li
n
Category B DE 1
lia
Ju
a
or
H
Category A FR 1 30
da
To
-A
9
01
Category B US 2 33
-2
ar
M
6-
-2
Category B DE 1 44
o
an
zc
Li
n
lia
Total 6 139
Ju
a
or
H
da
• The total of all the metrics can be computed To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Category A
a
or
H
da
To
-A
9
01
-2
ar
Category B
M
6-
-2
o
an
zc
Li
n
lia
Ju
Bucket Aggregations DE US FR
0k-10k
10k-20k
20k-30k
30k-40k
a
or
H
da
40k-50k
To
-A
9
01
-2
50k-60k
ar
M
6-
-2
o
an
60k-70k
zc
Li
n
lia
Ju
70k-80k
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Marie
John
Bill
Tom
a
or
H
da
Emma
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
• The visualized points need to be geo point in Elasticsearch
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
https://maps.elastic.co/v2/index.html#
To
-A
9
01
-2
ar
a
‒ the country name: France, United States, Germany, Netherlands
or
H
da
To
-A
• It is possible to define the join field that is going to be used
9
01
-2
ar
in the options
M
6-
-2
o
an
zc
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
using the coordinate map (documents should have a field
or
H
da
To
with latitude and longitude) or using the region map 9
-A
01
a
or
H
da
To
De
Bourraine 200 149.4 9
-A
01
-2
ar
M
-2
o
an
zc
Li
n
lia
Ju
Bucket Aggregation
?
4 40
a
or
3
H
30
da
Document count
To
-A
Average age
9
01
Metrics
-2
ar
M
2 20
6-
Aggregation
-2
o
an
zc
Li
n
lia
1
Ju
10
0 0
US FR DE
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !170
distributing without written permission is strictly prohibited
Multi Metrics Visualization
• Multiple metrics can be displayed side by side in a
visualization
• Having multiple metrics can make the visualization hard to
read for the following reasons:
- the metrics have different scale
- the metrics are stacked (or not, depending of the purpose of the
visualization)
a
or
H
da
- the metrics have the same representations when they are
To
-A
comparing different things (bars, lines, area)
9
01
-2
ar
M
6-
-2
a
or
H
da
To
- bars 9
-A
01
-2
ar
- areas
M
6-
-2
o
an
zc
Li
n
lia
Ju
Different chart
types
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
5. uncheck "show line"
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
4 40
a
or
H
3
da
30
To
Document count
-A
9
Average age
01
-2
ar
M
2
6-
20
-2
o
an
zc
Li
n
lia
Ju
1 10
0 0
US FR DE
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !177
distributing without written permission is strictly prohibited
Multi Charts
2 40
Document count
Average age
Category A 1 20
0 0
US FR
a
or
H
da
To
-A
2 40
9
01
count
-2
ar
M
6-
Average age
-2
Category B
o
an
1
Document
20
zc
Li
n
lia
Ju
0 0
US DE
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
3 Kibana Visualization
6 Kibana Management
Lesson 4
a
Kibana
or
H
da
To
-A
Customized
9
01
-2
ar
M
6-
Dashboards
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Dashboard
Introduction to
Limitations
• Visualizations are interactive, it is possible:
‒ to filter out some values
‒ apply searches
‒ select a time window
• But there is still a lot of things that are not possible to do
with visualizations:
a
or
H
‒ how does other visualizations behave for the same specific time
da
To
-A
window
9
01
-2
ar
M
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
‒ ... analyze?
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
‒ filter by using input control (this will be covered later on)
To
-A
9
01
-2
a
‒ generating a report
or
H
da
To
-A
• The person with whom the dashboard is shared need to
9
01
-2
ar
a
or
H
da
To
‒ permalink will clean the URLs 9
-A
01
-2
ar
‒ share a snapshot
‒ share the latest saved object
Copyright Elasticsearch BV 2015-2019 Copying, publishing and/or !191
distributing without written permission is strictly prohibited
Snapshot of a Dashboard
• What would happen if while an email containing a permalink
is sent, the visualizations in the dashboard are changed?
‒ if a snapshot was used then the visualizations that are going to
be seen in the dashboard using the link (or iframe) will not
changed
‒ if a saved object was used then the visualizations are going to
changed
a
• Take a snapshot of the visualization/dashboard in order to
or
H
da
To
have it "frozen" and then share it with someone else 9
-A
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
• Security will be covered more in depth in another lesson
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ using a reverse proxy to pass the authentication of the
da
To
-A
dashboard only user
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
‒ has the person access to the shared data?
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
‒ defining titles
or
H
da
To
-A
‒ ...
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
-----
a
or
H
da
To
-A
This is a big title
9
01
-2
ar
M
_________________
an
zc
Li
n
lia
a
or
H
‒ ...
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
‒ a slider for numeric values
H
da
To
-A
9
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
visualization are different than the one that you can generate
H
da
To
manually 9
-A
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
Kibana directly
da
To
-A
9
01
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
‒ visualizations
or
H
da
To
-A
‒ dashboards
9
01
-2
ar
M
6-
‒ canvas
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Element
Data Source Styling
Type
Elasticsearch
Colors
Image
SQL
a
or
H
da
To
-A
Pie Chart Timelion Fonts
9
01
-2
ar
M
6-
-2
o
an
zc
Elasticsearch
Markdown Size
Documents
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
5 Kibana Visualization
a
Kibana Time
or
H
da
To
-A
Series
9
01
-2
ar
M
6-
Visualization
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Builder
Time Series Visual
Introduction
• Combine an infinite number of aggregations and pipeline
aggregations to display complex data in a meaningful way
• Allows a lot more customization in how the chart are
displayed:
‒ background colors
‒ axis
a
‒ ...
or
H
da
To
-A
• There is the possibility of combining multiple index patterns
9
01
-2
ar
a
or
H
• TSVB has more flexibility:
da
To
-A
9
01
‒ cloning series
o
an
zc
Li
n
lia
‒ styling
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ tables
da
To
-A
9
01
criterion
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
use the auto-completion feature
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
.data_source_function(parameter=value).function(),
.data_source_function(parameter=value).function()
a
or
H
da
To
-A
9
parameters
-2
coma
o
an
zc
Li
n
lia
Ju
a
or
H
da
• Conditions: condition(), if() To
-A
9
01
-2
ar
M
legend(), title()
zc
Li
n
lia
Ju
.es(index=apachelogs-*).divide(.es(index=apachelogs-*, q=FR)),
.es(index=apachelogs-*).divide(.es(index=apachelogs-*, q=DE))
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
.es(index=apachelogs*, q=geoip.country_code2:FR,
da
To
metric=sum:bytes).divide(.es(index=apachelogs*,metric=sum:by 9
-A
tes)).multiply(100)
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
2 Kibana Search
3 Kibana Visualization
6 Kibana Management
Lesson 6
a
Kibana
or
H
da
To
-A
Management
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Advanced Settings
Scripted Fields
• Scripted fields compute values on the fly from the data in your
Elasticsearch indices
‒ scripted field values are computed at query time so they aren’t
indexed
‒ scripted fields can be very resource intensive and can have a direct
impact on Kibana’s performance
‒ there is no validation! Buggy scripts will generate exceptions when
viewing visualization containing them
a
or
H
da
To
• Scripted fields by default use the "Painless" or "Lucene 9
-A
01
‒ https://www.elastic.co/guide/en/elasticsearch/reference/current/
an
zc
Li
modules-scripting-painless.html
n
lia
Ju
‒ https://www.elastic.co/guide/en/elasticsearch/reference/current/
modules-scripting-expression.html
a
or
H
da
To
‒ while searching (only if the Kibana Query Language 9
-A
01
Enhancement is used)
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
‒ quick
H
da
To
-A
‒ absolute
9
01
-2
ar
M
6-
‒ relative
-2
o
an
zc
Li
n
accordingly
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ ...
da
To
-A
9
01
a
or
number in Kibana by changing the parameter
H
da
To
format:number:defaultLocale to a specific country 9
-A
01
-2
ar
M
‒ 3 000,01 in French
n
lia
Ju
‒ 3,000.01 in English
a
or
H
da
‒ keep only the _source in the metafields
To
-A
9
01
-2
Elasticsearch
-2
o
an
zc
Li
n
lia
Ju
a
or
H
‒ query:allowLeadingWildcards for the autocompletion
da
To
-A
9
01
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
• Numbers can be formatted to reflect local representation of
To
-A
9
numbers
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
‒ the dashboard interface to generate a pdf of the dashboard
H
da
To
-A
• Once a report has been generated it is possible to retrieve it
9
01
-2
ar
M
a
or
H
make it easier to set it up:
da
To
-A
9
01
‒ https://www.elastic.co/guide/en/kibana/current/automating-report-
-2
ar
M
generation.html
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
• Once those objects are saved they will be appearing in
da
To
-A
Management -> Saved Objects
9
01
-2
ar
M
6-
Kibana
Ju
a
objects
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
‒ ressources
H
da
To
-A
‒ privilege
9
01
-2
ar
M
6-
‒ permissions
-2
o
an
zc
Li
n
‒ role
lia
Ju
‒ user
Audit Logging
IP filtering
a
or
H
Native, LDAP, PKI, Active Directory
da
To
authentication 9
-A
01
SAML authentication
-2
ar
M
6-
-2
Third-party authentication
a
or
H
‒ being able to read the data from a specific twitter index
da
To
-A
9
01
-2
ar
M
6-
Privilege Ressource
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
• The indices privileges are given to users that will need to 9
-A
01
a
or
H
da
To
‒ email address 9
-A
01
-2
ar
a
means that the resources that the user should be able to
or
H
da
To
access still need to be defined 9
-A
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
• All the objects created inside a specific space will only be
H
da
To
accessible through this space 9
-A
01
-2
ar
M
a
or
• Every space must have a unique space identifier (the part
H
da
that will be added to the Kibana URL) To
-A
9
01
-2
ar
M
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Instructor Demo
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
FOUNDATION
Immersive Learning
Lab-based exercises and knowledge
checks to help master new skills
Solution-based Curriculum
Real-world examples and common use
cases
a
or
H
da
To
Experienced Instructors 9
-A
01
everything Elastic
-2
o
an
SPECIALIZATIONS
zc
Li
Performance-based Certification
Ju
a
or
H
Please complete the online survey
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Ju
lia
n
Li
Quiz Answers
zc
an
o
-2
6-
M
ar
-2
01
9
-A
To
da
H
or
a
Unit 1 Quiz Answers
1. Elasticsearch, Kibana, Beats, Logstash
2. False
3. * c* co* coo* cook* cooki* cookin* cooking* cooking_*
4. Left: Time series dataset Right: Static dataset
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju
Version 6.5.0
© 2015-2019 Elasticsearch BV. All rights reserved. Decompiling, copying, publishing and/or distribution without written consent of Elasticsearch BV is
strictly prohibited.
a
or
H
da
To
-A
9
01
-2
ar
M
6-
-2
o
an
zc
Li
n
lia
Ju