Create a custom dashboard
This section describes the process of creating a set of custom visualizations using Kibana and how to add them into a dashboard to create a custom dashboard.
Creating Visualization
Go to the Visualize tab.
![](../../../_images/visualize-tab1.png)
Click on Create new visualization.
![](../../../_images/create-new-visualization1.png)
And select a visualization type among the ones available. As an example, we will be taking the Horizontal Bar chart, but it is essentially the same for other types of visualization.
![](../../../_images/select-visualization-type1.png)
Next step will be selecting the index that will be used as a data source. We can work with any index that we created previously, but generally, we will be working with wazuh-alerts-3.x-*.
![](../../../_images/choose-a-source1.png)
At this point, a graph will be generated. You can select a lapse of time to display the information related to that period. Click on the following dropdown menu, define it and then update your changes.
![](../../../_images/select-lapse-time1.png)
This chart can be configured to match your preferences. You can organize your data using Metrics and Buckets.
![](../../../_images/metrics-and-buckets1.png)
Metrics section has options in order to quantify the data: Count, average, sum, max/min, etc.
Buckets are aggregations of data that are sorted according to your search criteria.
For this example, we will leave the Y-Axis as default (count) and we will modify the Buckets (X-Axis) to sort them according to the level of the rules that have been triggered.
To do so we will have to click on X-Axis:
![](../../../_images/bucket-x-axis1.png)
Select the Terms option in the Select an aggregation menu:
![](../../../_images/bucket-select-an-aggregation-terms1.png)
Now you will be able to select a Field to sort by (e.g. rule.level):
![](../../../_images/bucket-term-field1.png)
And, eventually, you will need to apply the changes to visualize them:
![](../../../_images/bucket-apply-changes1.png)
Now you will be able to see a chart like this:
![](../../../_images/horizontal-example-chart1.png)
Saving a Visualization
Once we have created a customized visualization, as we did in the previous section, we can save it by clicking on Save.
![](../../../_images/save-visualization1.png)
After that, set a name for it and confirm.
![](../../../_images/confirm-save-visualization1.png)
Creating a Custom Dashboard
In order to create a customized dashboard we can reuse a saved visualization in the Dashboard section:
![](../../../_images/dashboard-tab1.png)
Just have to click on Create a new dashboard:
![](../../../_images/create-new-dashboard1.png)
And then click on Add.
![](../../../_images/add-visualization-to-dashboard1.png)
Now you can select a visualization to add among the ones you have saved. We will choose the bar chart that we created previously and then click on Create new visualization:
![](../../../_images/select-panels-to-add1.png)
You will be able to see the visualization added to the dashboard:
![](../../../_images/panel-was-properly-added1.png)
You can keep adding visualizations to the dashboard following the same process so that it fits your preferences.
![](../../../_images/complex-dashboard1.png)
Once you have finished editing your dashboard you will need to save it by clicking Save.
![](../../../_images/save-dashboard1.png)
Set its name, description and save it:
![](../../../_images/confirm-save-dashboard1.png)