Kibana – Create Visualization

We can visualize the data we have in the form of bar charts, line graphs, pie charts, etc. In this chapter, we will understand how to create the visualization.

Create Visualization

Go to Kibana Visualization as shown below โˆ’

We do not have any visualization created, so it shows blank and there is a button to create one.

Click the button Create a visualization as shown in the screen above and it will take you to the screen as shown below โˆ’

Here you can select the option which you need to visualize your data. We will understand each one of them in detail in the upcoming chapters. Right now will select a pie chart to start with.

Once you select the visualization type, now you need to select the index on which you want to work on, and it will take you to the screen as shown below โˆ’

Now we have a default pie chart. We will use the countries’ data-28.12.2018 to get the count of regions available in the countries’ data in pie chart format.

Bucket and Metric Aggregation

The left side has metrics, which we will select as count. In Buckets, there are 2 options Split slices and split chart. We will use the option Split slices.

Now, select Split Slices and it will display the following options โˆ’

Now, select the Aggregation as Terms and it will display more options to be entered as follows โˆ’

The Fields dropdown will have all the fields from the index: countries data chose. We have chosen the Region field and Order By. Note that we have chosen, the metric Count for Order By. We will order it Descending and the size we have taken as 10. It means here, we will get the top 10 regions to count from the countries index.

Now, click the analyze button as highlighted below and you should see the pie chart updated on the right side.

Pie chart display

All the regions are listed at the right top corner with colors and the same color as shown in the pie chart. If you mouse over the pie chart it will give the count of the region and also the name of the region as shown below โˆ’

So it tells us that 22.77% of the region is occupied by Sub-Saharan Afri from the countries data we have uploaded.

Asia region covers 12.5% and the count is 28.

Now we can save the visualization by clicking on the save button on the top right corner as shown below โˆ’

Now, save the visualization so that it can be used later.

We can also get the data as we want by using the search option as shown below โˆ’

We have filtered data for countries starting with Aus*. We will understand more about pie-chart and other visualization in the upcoming chapters.

Leave a Reply