top of page

Elastic - Visualizing objects in tables with Zero records

  • brencronin
  • Dec 1, 2024
  • 1 min read

Updated: Feb 2

Kibana dashboards in Elastic are highly effective for creating meaningful visualizations to analyze data. However, if a query in the dashboard does not return any records, the dashboard may not display zero values for the visualized data. In some scenarios, it’s essential to represent those zero values in the dashboard for clarity.


For example, consider a dashboard designed to display the number of logs received from firewalls over a specific period, with each unique firewall identified by observer.name. If the Elastic logging system does not receive logs from a particular firewall, you want the dashboard to explicitly show a value of zero for that firewall (observer.name).


The method outlined below demonstrates how to include values in the dashboard so that fields with zero records are displayed with a value of zero in the visualization.


(Credit to VJ and Johnson for this approach.)


Steps in Elastic


Click on [Create Dashboard]


ree

Click on [Create Visualization]


ree

Select [Appropriate Data source] as the Data View

ree

Under [Visualization type], choose Table

ree

Under [search fields], search for [Object with zero records. In this case observer.name]

ree

Drag and drop [observer.name] to the right. Put it under [Rows]

ree

Repeat step 6 & 7, this time search for [Records], then drag and drop it under [Metrics]

ree

Click on [Top 5 value of observer.name] under Rows

ree

Click on [Filters].

ree

Click on [“observer.name” : *].

ree

Remove * and select/type the firewall name.


ree

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by croninity. Proudly created with Wix.com

bottom of page