SlideShare uma empresa Scribd logo
1 de 62
Kusto
Azure Data Explorer
For Taboola LA R&D
Monitoring in Production
Maher Odeh (Taboola Production IT), Adi Eldar (Microsoft), Tal Bar Zvi (Taboola R&D) 1
https://youtu.be/iWay1PeoGhg
Click here to watch
the recorded session
Maher Odeh, Taboola
Production IT
2
Adi Eldar, Microsoft
Principal Data Scientist
Tal Bar Zvi, Taboola
R&D, User Data
3
4
Applause
Gift Economy
5
Goals of This Training
6
1. Kusto Queries
1. Dashboards
1. Alerts
1. Bonus: Data Science
Let’s begin
7
Kusto is...
8
A new way to look at data / logs
What is it actually?What is it actually?
It’s a new, innovative thing
Developed by Microsoft
We are one of the first to use it
It helps us to get the picture of our service in a few
seconds
What is it actually?
It’s a new, innovative thing
Developed by Microsoft
We are one of the first to use it
It helps us to get the picture of our service in a few
seconds
Wow, sounds cool
True Story
9
Now Really Let’s begin
10
✓ Big Data
✓ Database
✓ Tables
✓ Functions
✓ Scripting
✓ Join
✓ Union
✓ Fast Search
✓ Graphs
✓ Dashboards
✓ Alerts
✓ HTTP Logs (for now)
✓ Notebooks
✓ Python
Why Kusto?
● Kibana-Fastly replacement
● It has a WOW effect
● It is easy to use and learn
11
It is new, for all,
we learn it together.
(This is Rare!)
12
Different payment model.
Kusto is already paid - flat.
Queries do not* cost extra money.
*prod-it are gonna hate me after this slide
✓ Credits: Shaked Zychlinski
What’s in?
13
Which Data / Logs Are In Kusto?
14
15
Request
URL
Referrer
HTTP Status
Response Time
+
DC
Server IP
more...
16
Javascript files (*.js)
(loader.js, impl, newsroom, userx...)
Image files (*.jpg, *.png...)
Events (available, visible, click, social,
debug, performance…)
Etc.
Architecture
17
Log files - from Fastly (CDN)
Kusto
Web interface
● Query
● Graphs
● Dashboards
API
● Alerts (Sensu)
● Scripting
● Jupyter
● Programming
What is a CDN (Fastly & Akamai for example)?
18
50 server farms
7 Data Centers
Caching our HTTP responses
HTTP Logs
CDN = Content Delivery Network
Kusto Database Sizes (as of Jan 2019)
19
Database Size RETENTION
COLD / HOT (CACHED)
fastly-
backstage
15 GB 60 days (31 days 🔥)
fastly-c3 10 TB 30 days (3 days 🔥)
fastly-trc 250 TB 30 days (3 days 🔥)
SLIDE | 20
Take Away
Messages No. 1
20
1. Kusto is BigData database
1. It holds our HTTP requests
1. Hot vs. Cold
Query
21
22
Tabs
Select:
Cluster & Database
Docs Settings
Output
Query
Tabs, Statistics, Info
Column
Selection
Pivoting
Deep link sharingExport ImportRun Recall output
Documentation
Click on Query Language
23
Query - KQL
24
● Query = statement ; statement ; ….. ; statement
● At least one statement is a tabular expression
● Returns result back
source |
operator1 |
[ | operator2 ]
[ | render ]
(Taboolar?!)
KQL vs. SQL
25
Example No. 1 of 7
26
● trc_access | count
Hot vs. Cold...
Example No. 1 of 7 - corrected
27
● trc_access | where timestamp > ago(1d) | count
Example No. 2 of 7 - by publisher
28
trc_access |
where timestamp > ago(1d) |
where publisher_name == ‘msn-msn’ |
count
Example No. 3 of 7 - take (like “limit”)
29
trc_access |
where timestamp > ago(5m) |
where publisher_name == ‘msn-msn’ |
take 5Geo Referrer Time Action URL
Example No. 4 of 7 - summarize & top
30
trc_access | where timestamp > ago(1h) |
summarize count() by geo_country_code |
top 5 by count_ desc;
trc_access | where timestamp > ago(1h) |
summarize count() by action |
top 5 by count_ desc
; Semicolon
Example No. 5 of 7 - render
31
trc_access | where timestamp > ago(1h) |
summarize count() by geo_country_code |
top 5 by count_ desc; | render piechart
WOW
Alert:
32
Example No. 6 of 7 - timechart
33
trc_access | where timestamp > ago(10d) |
summarize count() by bin(timestamp, 30m) |
render timechart
Example No. 7 of 7 - extract & extend
34
Complex Example
True Story from Last Week
35
Exmple - HTTP errors, where? what?
36
● Step 1 - See HTTP error increased
● Step 2 - Summarize by data center
● Step 3 - Summarize by action
● Step 4 - Union with normal traffic
HTTP Error Spike
Step 1
NJ & CH are
suffering
Step 2Step 2`Step 3
Found the actionsUnion
Project
Alias
Low
errors
Normal
Traffic
Both Normal
and Errors rise
Errors
Gone
SLIDE | 37
Take Away
Messages No. 2
37
1. Kusto has fast query capacities
1. It can create graphs
1. Can aggregate and create fields on-the-fly
1. Helps in:
a. Find root cause
b. Traffic sampling
c. Insights & trends
d. Integration validations
Brain Notebooks
38
Want more use cases? Use Brain. Sharing is Caring.
39
Team’s
wisdom
Your personal
wisdom
Here
some
40
Click to run on Kusto
(deep link)
Calculates response
time percentiles
Credits:
Taboola News
Some
more
41
1. action == ‘json’
2. unkown pub
3. extend data (add column)
4. url_decode(%20 - out)
5. parse_json
6. extend (again)
7. project
8. summarize by pub, json field
9. top 30 by count
Credits:
Taboola Mobile
Kusto Community
42
#kusto @kusto-mentors
43
SLIDE | 44
Take Away
Messages No. 3
44
1. Use Slack and Brain to share
1. Document your usage for others to learn
Dashboards
Lens Explorer
46
47
48
Lens Explorer - Rich Data Visualisations
Alerts
50
Kusto Sensu Integration
Elastic based check
Same check w/ Kusto
51
Alerts (using Sensu)
Period &
Threshold
Kusto
Query
Data Science
&
Notebooks
Jupyter Notebooks - Kqlmagic (Azure & Locally)
53
Kqlmagic Connect
Run queries
Output saved
Standardized
Use make-series (it’s fast)
To see the HTTP error
spike
Remember the example from 15 min. ago?
54
Use autocluster to find
similar error characteristics
DC is CH
Newsroom
affected
This is
the host
Using diffpatterns to find
clues
DC is CH Newsroom
affected
This is
the host
Kusto + Grafana
56
Summary
57
1. You know where to find me (tal.b@taboola.com)
1. You know you have accessible Resources
(Brain, WWW, Pluralsight free course, Videos, #kusto, Microsoft)
1. You saw how easy it is to run Kusto queries
1. You saw that there are Dashboards & Alerts
1. You are aware of the existence of built-in Data Science power
@kusto-mentors
58
Thank You
59
FAQ
60
1. Does it cost money? It is prepaid
2. What about Kibana, Grafana, BQ? Here to stay for now
3. What about applicative logs / my data? Currently Fastly logs
4. Will my elastic-fastly alerts be converted to Kusto for me? No
5. When will the other fastly logs be available? Updates in slack #kusto
6. Can we have more Kusto trainings? Dashboard? Workshops? Yes
7. Does Kusto support distinct count? Yes
8. Does Kusto have materialized views? Yes
9. Can we add to the schema our common recommendation fields? Yes
10. What about API 2.0 HTTP POST payload? It is in discussions
11. Can I look in all fields like in Kibana? Yes
12. Do all have access? Many have, or else ticket to prod-it
13. Can I use the alerts? Work in progress
14. Can I automatically derive smaller tables? Yes
Demo Time!
61
Pics - Atmosphere
62

Mais conteúdo relacionado

Mais procurados

Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
DataWorks Summit
 

Mais procurados (20)

OSMC 2022 | OpenTelemetry 101 by Dotan Horovit s.pdf
OSMC 2022 | OpenTelemetry 101 by Dotan Horovit s.pdfOSMC 2022 | OpenTelemetry 101 by Dotan Horovit s.pdf
OSMC 2022 | OpenTelemetry 101 by Dotan Horovit s.pdf
 
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
 
Understanding Query Plans and Spark UIs
Understanding Query Plans and Spark UIsUnderstanding Query Plans and Spark UIs
Understanding Query Plans and Spark UIs
 
Databricks Fundamentals
Databricks FundamentalsDatabricks Fundamentals
Databricks Fundamentals
 
ATTACKers Think in Graphs: Building Graphs for Threat Intelligence
ATTACKers Think in Graphs: Building Graphs for Threat IntelligenceATTACKers Think in Graphs: Building Graphs for Threat Intelligence
ATTACKers Think in Graphs: Building Graphs for Threat Intelligence
 
Modern Data architecture Design
Modern Data architecture DesignModern Data architecture Design
Modern Data architecture Design
 
Modernizing to a Cloud Data Architecture
Modernizing to a Cloud Data ArchitectureModernizing to a Cloud Data Architecture
Modernizing to a Cloud Data Architecture
 
Sigma and YARA Rules
Sigma and YARA RulesSigma and YARA Rules
Sigma and YARA Rules
 
Deep Dive into the New Features of Apache Spark 3.0
Deep Dive into the New Features of Apache Spark 3.0Deep Dive into the New Features of Apache Spark 3.0
Deep Dive into the New Features of Apache Spark 3.0
 
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
Unify Stream and Batch Processing using Dataflow, a Portable Programmable Mod...
 
Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...
Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...
Extending Apache Ranger Authorization Beyond Hadoop: Review of Apache Ranger ...
 
Azure Synapse Analytics Overview (r2)
Azure Synapse Analytics Overview (r2)Azure Synapse Analytics Overview (r2)
Azure Synapse Analytics Overview (r2)
 
Optimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache SparkOptimizing Delta/Parquet Data Lakes for Apache Spark
Optimizing Delta/Parquet Data Lakes for Apache Spark
 
Data Onboarding
Data Onboarding Data Onboarding
Data Onboarding
 
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta LakeSimplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
 
Data lineage and observability with Marquez - subsurface 2020
Data lineage and observability with Marquez - subsurface 2020Data lineage and observability with Marquez - subsurface 2020
Data lineage and observability with Marquez - subsurface 2020
 
Splunk Overview
Splunk OverviewSplunk Overview
Splunk Overview
 
Introducing Azure SQL Data Warehouse
Introducing Azure SQL Data WarehouseIntroducing Azure SQL Data Warehouse
Introducing Azure SQL Data Warehouse
 
Introduction SQL Analytics on Lakehouse Architecture
Introduction SQL Analytics on Lakehouse ArchitectureIntroduction SQL Analytics on Lakehouse Architecture
Introduction SQL Analytics on Lakehouse Architecture
 
ELK Stack
ELK StackELK Stack
ELK Stack
 

Semelhante a Kusto (Azure Data Explorer) Training for R&D - January 2019

MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
Hideyuki Kawashima
 

Semelhante a Kusto (Azure Data Explorer) Training for R&D - January 2019 (20)

Interconnection Automation For All - Extended - MPS 2023
Interconnection Automation For All - Extended - MPS 2023Interconnection Automation For All - Extended - MPS 2023
Interconnection Automation For All - Extended - MPS 2023
 
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
 
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
 
Real Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik RamasamyReal Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik Ramasamy
 
Monitoring your Python with Prometheus (Python Ireland April 2015)
Monitoring your Python with Prometheus (Python Ireland April 2015)Monitoring your Python with Prometheus (Python Ireland April 2015)
Monitoring your Python with Prometheus (Python Ireland April 2015)
 
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
 
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
NTTドコモ様 導入事例 OpenStack Summit 2015 Tokyo 講演「After One year of OpenStack Cloud...
 
Monitoring Big Data Systems - "The Simple Way"
Monitoring Big Data Systems - "The Simple Way"Monitoring Big Data Systems - "The Simple Way"
Monitoring Big Data Systems - "The Simple Way"
 
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data ProcessingCloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
 
Apache Beam (incubating)
Apache Beam (incubating)Apache Beam (incubating)
Apache Beam (incubating)
 
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
Application Monitoring using Open Source: VictoriaMetrics - ClickHouseApplication Monitoring using Open Source: VictoriaMetrics - ClickHouse
Application Monitoring using Open Source: VictoriaMetrics - ClickHouse
 
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
Application Monitoring using Open Source - VictoriaMetrics & Altinity ClickHo...
 
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
 
Lessons learned from designing QA automation event streaming platform(IoT big...
Lessons learned from designing QA automation event streaming platform(IoT big...Lessons learned from designing QA automation event streaming platform(IoT big...
Lessons learned from designing QA automation event streaming platform(IoT big...
 
MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"MCSoC'13 Keynote Talk "Taming Big Data Streams"
MCSoC'13 Keynote Talk "Taming Big Data Streams"
 
Distributed real time stream processing- why and how
Distributed real time stream processing- why and howDistributed real time stream processing- why and how
Distributed real time stream processing- why and how
 
Microsoft Dryad
Microsoft DryadMicrosoft Dryad
Microsoft Dryad
 
Why And When Should We Consider Stream Processing In Our Solutions Teqnation ...
Why And When Should We Consider Stream Processing In Our Solutions Teqnation ...Why And When Should We Consider Stream Processing In Our Solutions Teqnation ...
Why And When Should We Consider Stream Processing In Our Solutions Teqnation ...
 
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
 
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
 

Último

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Último (20)

%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 

Kusto (Azure Data Explorer) Training for R&D - January 2019

  • 1. Kusto Azure Data Explorer For Taboola LA R&D Monitoring in Production Maher Odeh (Taboola Production IT), Adi Eldar (Microsoft), Tal Bar Zvi (Taboola R&D) 1 https://youtu.be/iWay1PeoGhg Click here to watch the recorded session
  • 2. Maher Odeh, Taboola Production IT 2 Adi Eldar, Microsoft Principal Data Scientist Tal Bar Zvi, Taboola R&D, User Data
  • 3. 3
  • 6. Goals of This Training 6 1. Kusto Queries 1. Dashboards 1. Alerts 1. Bonus: Data Science
  • 8. Kusto is... 8 A new way to look at data / logs What is it actually?What is it actually? It’s a new, innovative thing Developed by Microsoft We are one of the first to use it It helps us to get the picture of our service in a few seconds What is it actually? It’s a new, innovative thing Developed by Microsoft We are one of the first to use it It helps us to get the picture of our service in a few seconds Wow, sounds cool
  • 10. Now Really Let’s begin 10 ✓ Big Data ✓ Database ✓ Tables ✓ Functions ✓ Scripting ✓ Join ✓ Union ✓ Fast Search ✓ Graphs ✓ Dashboards ✓ Alerts ✓ HTTP Logs (for now) ✓ Notebooks ✓ Python
  • 11. Why Kusto? ● Kibana-Fastly replacement ● It has a WOW effect ● It is easy to use and learn 11 It is new, for all, we learn it together. (This is Rare!)
  • 12. 12 Different payment model. Kusto is already paid - flat. Queries do not* cost extra money. *prod-it are gonna hate me after this slide ✓ Credits: Shaked Zychlinski
  • 14. Which Data / Logs Are In Kusto? 14
  • 16. 16 Javascript files (*.js) (loader.js, impl, newsroom, userx...) Image files (*.jpg, *.png...) Events (available, visible, click, social, debug, performance…) Etc.
  • 17. Architecture 17 Log files - from Fastly (CDN) Kusto Web interface ● Query ● Graphs ● Dashboards API ● Alerts (Sensu) ● Scripting ● Jupyter ● Programming
  • 18. What is a CDN (Fastly & Akamai for example)? 18 50 server farms 7 Data Centers Caching our HTTP responses HTTP Logs CDN = Content Delivery Network
  • 19. Kusto Database Sizes (as of Jan 2019) 19 Database Size RETENTION COLD / HOT (CACHED) fastly- backstage 15 GB 60 days (31 days 🔥) fastly-c3 10 TB 30 days (3 days 🔥) fastly-trc 250 TB 30 days (3 days 🔥)
  • 20. SLIDE | 20 Take Away Messages No. 1 20 1. Kusto is BigData database 1. It holds our HTTP requests 1. Hot vs. Cold
  • 22. 22 Tabs Select: Cluster & Database Docs Settings Output Query Tabs, Statistics, Info Column Selection Pivoting Deep link sharingExport ImportRun Recall output Documentation
  • 23. Click on Query Language 23
  • 24. Query - KQL 24 ● Query = statement ; statement ; ….. ; statement ● At least one statement is a tabular expression ● Returns result back source | operator1 | [ | operator2 ] [ | render ] (Taboolar?!)
  • 26. Example No. 1 of 7 26 ● trc_access | count Hot vs. Cold...
  • 27. Example No. 1 of 7 - corrected 27 ● trc_access | where timestamp > ago(1d) | count
  • 28. Example No. 2 of 7 - by publisher 28 trc_access | where timestamp > ago(1d) | where publisher_name == ‘msn-msn’ | count
  • 29. Example No. 3 of 7 - take (like “limit”) 29 trc_access | where timestamp > ago(5m) | where publisher_name == ‘msn-msn’ | take 5Geo Referrer Time Action URL
  • 30. Example No. 4 of 7 - summarize & top 30 trc_access | where timestamp > ago(1h) | summarize count() by geo_country_code | top 5 by count_ desc; trc_access | where timestamp > ago(1h) | summarize count() by action | top 5 by count_ desc ; Semicolon
  • 31. Example No. 5 of 7 - render 31 trc_access | where timestamp > ago(1h) | summarize count() by geo_country_code | top 5 by count_ desc; | render piechart WOW
  • 33. Example No. 6 of 7 - timechart 33 trc_access | where timestamp > ago(10d) | summarize count() by bin(timestamp, 30m) | render timechart
  • 34. Example No. 7 of 7 - extract & extend 34
  • 35. Complex Example True Story from Last Week 35
  • 36. Exmple - HTTP errors, where? what? 36 ● Step 1 - See HTTP error increased ● Step 2 - Summarize by data center ● Step 3 - Summarize by action ● Step 4 - Union with normal traffic HTTP Error Spike Step 1 NJ & CH are suffering Step 2Step 2`Step 3 Found the actionsUnion Project Alias Low errors Normal Traffic Both Normal and Errors rise Errors Gone
  • 37. SLIDE | 37 Take Away Messages No. 2 37 1. Kusto has fast query capacities 1. It can create graphs 1. Can aggregate and create fields on-the-fly 1. Helps in: a. Find root cause b. Traffic sampling c. Insights & trends d. Integration validations
  • 39. Want more use cases? Use Brain. Sharing is Caring. 39 Team’s wisdom Your personal wisdom
  • 40. Here some 40 Click to run on Kusto (deep link) Calculates response time percentiles Credits: Taboola News
  • 41. Some more 41 1. action == ‘json’ 2. unkown pub 3. extend data (add column) 4. url_decode(%20 - out) 5. parse_json 6. extend (again) 7. project 8. summarize by pub, json field 9. top 30 by count Credits: Taboola Mobile
  • 44. SLIDE | 44 Take Away Messages No. 3 44 1. Use Slack and Brain to share 1. Document your usage for others to learn
  • 46. 46
  • 47. 47
  • 48. 48 Lens Explorer - Rich Data Visualisations
  • 50. 50 Kusto Sensu Integration Elastic based check Same check w/ Kusto
  • 51. 51 Alerts (using Sensu) Period & Threshold Kusto Query
  • 53. Jupyter Notebooks - Kqlmagic (Azure & Locally) 53 Kqlmagic Connect Run queries Output saved Standardized
  • 54. Use make-series (it’s fast) To see the HTTP error spike Remember the example from 15 min. ago? 54 Use autocluster to find similar error characteristics DC is CH Newsroom affected This is the host Using diffpatterns to find clues DC is CH Newsroom affected This is the host
  • 56. 56
  • 57. Summary 57 1. You know where to find me (tal.b@taboola.com) 1. You know you have accessible Resources (Brain, WWW, Pluralsight free course, Videos, #kusto, Microsoft) 1. You saw how easy it is to run Kusto queries 1. You saw that there are Dashboards & Alerts 1. You are aware of the existence of built-in Data Science power
  • 60. FAQ 60 1. Does it cost money? It is prepaid 2. What about Kibana, Grafana, BQ? Here to stay for now 3. What about applicative logs / my data? Currently Fastly logs 4. Will my elastic-fastly alerts be converted to Kusto for me? No 5. When will the other fastly logs be available? Updates in slack #kusto 6. Can we have more Kusto trainings? Dashboard? Workshops? Yes 7. Does Kusto support distinct count? Yes 8. Does Kusto have materialized views? Yes 9. Can we add to the schema our common recommendation fields? Yes 10. What about API 2.0 HTTP POST payload? It is in discussions 11. Can I look in all fields like in Kibana? Yes 12. Do all have access? Many have, or else ticket to prod-it 13. Can I use the alerts? Work in progress 14. Can I automatically derive smaller tables? Yes

Notas do Editor

  1. Myself: 2 year in Taboola, Crazy about Taboola. User Data R&D Been developing software since I was 13 Maher from production id is the go-to person who set all this magic
  2. Recently added this in my Linkedin
  3. Evident you really care We are in it together
  4. Will help anyone that have something big to show
  5. EXPECTATIONS Who is the audience? DIVERSE AUDIENCE BIG This is the PART OF IT WILL BE TOO FAST AND PART TOO SLOW This is the VALUE
  6. You know other tools
  7. Simple Hebrew
  8. Insights were never so accessible - you will find stuff, you never had the ability to find. it is very simple. This tool enables you to investigate Taboola’s crazy traffic with ease.
  9. Killer combination
  10. Who is using Kusto? Who plans to use it? Questions in the end, this is a big crowd, use #Slack
  11. This is המחשה - סבלנות To make sure we are on the same page
  12. Request URL very useful
  13. This is production IT’s great work
  14. This technical gap that we need to close Thanks production IT!
  15. Use error for fast insight
  16. 1,000,000$ Question Are you happy about it?
  17. Take your time
  18. Fluent (like Java streams)
  19. For the SQL lovers Another language, a good one
  20. Learning by Example Ask people what is wrong here? Use hot
  21. New stuff in yellow
  22. Now ago(5m)
  23. SQL Group by == summarize Aggregation functions - avg(num-field)
  24. Powerful graphs Best is HORIZONTAL - BELLA GUTIE
  25. Most useful - timechart Is this clear? Black theme for cool guys
  26. Adi Dan / Michael Dragetski THEY KNEW NOW I KNOW TOO
  27. SQL Having Walkthrough Stay tuned to see this root cause drill down was done by Kusto Data Science Capabilities Prod-IT can see who to wake up even easier ALL is in BRAIN ASK - was it too fast? Too complex? OK? Ask me...
  28. Don’t sleep just yet!
  29. BRAIN
  30. Copy it to your own use
  31. Meetings (like this one), Meetups, Guild, and… #Slack
  32. Make its UX cool, use nice formatting
  33. Kibana Based
  34. Super rich, however Alerts come first Only when there is an alert - you can open dashboard - to see the history
  35. Tips & Best Practices
  36. We use sensu for alerting Over 50 errors in Yahoo Japan - Call Media PD On Call
  37. Advanced topics
  38. Jupyter
  39. Of course it works. This is our beloved visualisation tool.
  40. Grafana 5
  41. The first point is the most important one Even if you didn’t catch much, you can always ask
  42. Let’s works hard, play hard, and drink up
  43. Tips & Best Practices
  44. This explains what is Kusto Who believes that this is a true chat?