wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

The alerts related to Wazuh servers are not excluded on the Dashboard and Events tabs when the hideManagerAlerts setting is enabled

Open Desvelao opened this issue 1 year ago • 4 comments

Wazuh Rev Browser
- - -

Description The alerts related to Wazuh servers are not excluded on the Events (and sometimes on the Dashboard) tab when the hideManagerAlerts setting is enabled.

Related findings: https://github.com/wazuh/wazuh-dashboard-plugins/issues/6420#issuecomment-1952129793

Preconditions

  1. Enable the hideManagerAlerts setting of the plugin.
  2. Ensure there are data related to Wazuh servers (agent.id is 000)

Steps to reproduce

  1. Navigate to any module > Events
  2. Add a filter agent.id is 000 and see if there are data.

Expected Result

  1. When the hideManagerAlerts is enabled, the Events tab should not display data about the Wazuh server.

Evidences image

Desvelao avatar Feb 19 '24 13:02 Desvelao

Research

It seems some visualizations on the Dashboards tabs could not exclude the data related to Wazuh servers when the hideManagerAlerts are enabled. In the following screenshots, the Total count is 0 menawhile the visualizations display some data. image

Desvelao avatar Feb 19 '24 15:02 Desvelao

In monitoring, the allowAgent filter is continuously being added when changing the date range.

image

JuanGarriuz avatar Feb 20 '24 10:02 JuanGarriuz

The filter related to hideManagerAlerts is not considered for the Evolution visualization: image

Desvelao avatar Feb 20 '24 10:02 Desvelao

WIP patch: hide-server-data-events-tab.txt

This could fix the problem about missing filter related to hideManagerAlerts.

We saw some problems with repeated filters on Evolution visualization.

This needs a deeper analysis.

Due to this problem happening in previous versions and this will change in 4.9.0, I will leave the issue on hold until we decide what to do.

Desvelao avatar Feb 20 '24 12:02 Desvelao

This will be solved in this issue:

  • https://github.com/wazuh/wazuh-dashboard-plugins/issues/6499

I'm closing this.

asteriscos avatar May 13 '24 10:05 asteriscos