Creating Top N Visualizations with the Time Series Visual Builder (TSVB) in Kibana 7.6

1.5 hours
  • 3 Learning Objectives

About this Hands-on Lab

The Time Series Visual Builder (TSVB) is a great way of visualizing top “n” aggregations within time series data. By showcasing data in this way, we can visually represent the significance of the most recent values in a time-series. In this hands-on lab, we will leverage the TSVB in Kibana to create Top N visualizations from time-series data.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create and Save the Top Categories Visualization
  1. Create a new top n visualization with the TSVB.
  2. Calculate the sum of products.quantity, label it as Items Sold, and color it blue.
  3. Group Items Sold by the top 10 of products.category.keyword by items sold in descending order.
  4. Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
  5. Save the visualization as "Top Categories".
Create and Save the Top Manufacturers by Unique Products Visualization
  1. Create a new top n visualization with the TSVB.
  2. Calculate the cardinality of products.product_name.keyword, label it as Products, and color it green.
  3. Group Products by the top 10 of products.manufacturer.keyword by products in descending order.
  4. Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
  5. Save the visualization as "Top Manufacturers by Unique Products".
Create and Save the Top Cities by Sales Visualization
  1. Create a new top n visualization with the TSVB.
  2. Calculate the sum of products.price, label it as Sales, color it orange, and display it as a dollar amount with 2 decimal places (example: 1,234.567 as $1,234.56).
  3. Group Sales by the top 10 of geoip.city_name by sales in descending order.
  4. Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
  5. Save the visualization as "Top Cities by Sales".

Additional Resources

You work as a data analyst for an online clothing store. You have been tasked with creating the following TSVB top n visualizations in Kibana to track daily sales metrics:

Top Categories by Items Sold

  • Calculate the sum of products.quantity, label it as Items Sold, and color it blue.
  • Group Items Sold by the top 10 of products.category.keyword by items sold in descending order.
  • Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.

Top Manufacturers by Unique Products

  • Calculate the cardinality of products.product_name.keyword, label it as Products, and color it green.
  • Group Products by the top 10 of products.manufacturer.keyword by products in descending order.
  • Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.
Top Cities by Sales
  • Calculate the sum of products.price, label it as Sales, color it orange, and display it as a dollar amount with 2 decimal places (example: 1,234.567 as $1,234.56).
  • Group Sales by the top 10 of geoip.city_name by sales in descending order.
  • Configure the visualization to show the latest value with daily intervals and do not drop the last bucket.

Your Cloud Server has a Kibana instance that can be accessed in your local web browser by navigating to the public IP address of the lab node over port 8080 (example: http://public_ip:8080). To log in, use the elastic user with the password elastic_acg.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?