Dashboard Metric Count

144 views
Skip to first unread message

Kirijan J

unread,
Nov 4, 2024, 4:27:13 AM11/4/24
to Wazuh | Mailing List
Hi Team,

I used Metric Count to make the visualisation. It displaying the metric count if there are any count. If there are none, "No results found" is displayed. In place of this, count "0" ZERO must be displayed.

Our dashboard will display additional assurance data as a result. How to achive this.

Attached reference screenshot.

Thanks,
Kirijan J
Screenshot from 2024-11-04 14-51-46.png
Screenshot from 2024-11-04 14-51-46.png
Screenshot from 2024-11-04 14-51-46.png

Md. Nazmur Sakib

unread,
Nov 4, 2024, 5:02:21 AM11/4/24
to Wazuh | Mailing List

Hi Kirijan,

It is not possible to show zero if you are adding fields in table visualization. I will suggest using different visualization one with a data table and one with a Gauge and add them in the same Dashabord. Check the screenshots for reference.










Check this document to learn more about the Dashabord creation:

https://documentation.wazuh.com/current/user-manual/wazuh-dashboard/creating-custom-dashboards.html


I hope you find this information helpful.

Kirijan J

unread,
Nov 5, 2024, 3:16:58 AM11/5/24
to Wazuh | Mailing List
Hi Md. Nazmur Sakib,

Thanks for reponse. I tried using Gauge in that also "0" ZERO count not showing. Help me with another way. Screenshot attached.

And also we total agent count & group count in custom dashboard. Help me to create this.


Thanks,
Kirijan J
Screenshot from 2024-11-05 13-39-00.png
image(9).png

Kirijan J

unread,
Nov 6, 2024, 9:13:56 AM11/6/24
to Wazuh | Mailing List
Hi Team,

Kindly help me on this. 

Thanks,
Kirijan J 

Kirijan J

unread,
Nov 7, 2024, 3:49:44 AM11/7/24
to Wazuh | Mailing List
Hi Team,

Kindly help me on this. 

Thanks,
Kirijan J


Md. Nazmur Sakib

unread,
Nov 8, 2024, 4:57:25 AM11/8/24
to Wazuh | Mailing List
You have added additional information in the buckets which creates the issue.


Check how I have created mine.




Read this document carefully to understand it better:
https://documentation.wazuh.com/current/user-manual/wazuh-dashboard/creating-custom-dashboards.html
https://opensearch.org/docs/2.14/dashboards/dashboard/index/



I have created a sample Dashabord for you.



I am also sharing ndjson file of this dashboard so that you can explore how I have configured it and make the additional adjustment by yourself.

To import this dashboard, you need to go to
Stack Management / Dashboard Management  → Saved Object, click on Import, and import the ndjson files there that I have attached.


I hope you find this helpful.
Custom_dashboard.ndjson

Kirijan J

unread,
Nov 11, 2024, 2:32:04 AM11/11/24
to Wazuh | Mailing List
Hi Md. Nazmur Sakib,

Thanks for the update. It's working fine.  Thanks a lot.

I need one more help, which i mentioned in same thread.

I need total agent count & group count in custom dashboard. Reference screenshot attached.
It's already available in deafult "endpoints-summary#/agents-preview/". I need it like in my custom dashbord. Help me to create this.


Thanks,
Kirijan J
Screenshot from 2024-11-11 13-01-14.png

Md. Nazmur Sakib

unread,
Nov 12, 2024, 1:30:48 AM11/12/24
to Wazuh | Mailing List
Unfortunately, it is not possible to create the dashboard for agent groups and agent status as you shared in the screenshot at the moment as the rule engine has no awareness of agent groups and agent status. The custom dashboard is created based on the indices' documented information. This information is not available in the indices. The screenshot for the Wazuh Dashboard that you have shared is retrieved from Wazuh API.

At this moment it is not possible to create custom dashboards for those that you are asking.

Sorry for the inconvenience.

Kirijan J

unread,
Nov 20, 2024, 12:19:54 AM11/20/24
to Wazuh | Mailing List
Hi Md. Nazmur Sakib,

Thanks for the response. Is there any other way to display total agent count (active/disconnect) in custom dashboard.
Kindly help me with this. 

Thanks,
Kirijan J

Md. Nazmur Sakib

unread,
Nov 28, 2024, 2:28:27 AM11/28/24
to Wazuh | Mailing List
As I explained before the rule engine has no awareness of agent status. The custom dashboard is created based on the indices' documented information. This information is not available in the indices. The agent status comes from the API query of the Wazuh manager and it is not possible to make a custom dashboard for that.

Kirijan J

unread,
Nov 28, 2024, 3:24:34 AM11/28/24
to Wazuh | Mailing List
Hi Md. Nazmur Sakib,

Thanks for the update.


Thanks,
Kirijan J
Reply all
Reply to author
Forward
0 new messages