socfortress / CoPilot

SOCFortress CoPilot
https://www.socfortress.co
GNU Affero General Public License v3.0
210 stars 40 forks source link

Wazuh 4.8.0 Customer Provisioned Grafana Dashboards Incorrectly Configured with '.' instead of '_' #269

Closed ccben87 closed 4 months ago

ccben87 commented 4 months ago

Describe the bug Wazuh 4.8.0 Customer Provisioned Grafana Dashboards Incorrectly Configured with '.' instead of ''. A classic situation where Graylog is in the stack where Graylog automatically converts Wazuh fields from having a '.' to '' instead. The provisioned dashboards reference field names with '.' rather than what they need to which is '_'. Not a huge problem for one to update them as long as one understands this is the case. Would be nice if we could have this fixed in code though.

To Reproduce Steps to reproduce the behavior:

  1. Provision new customer
  2. Go to customer in Grafana
  3. Open dashboard "EDR - SYSTEM VULNERABILITIES - WAZUH 4.8 and ABOVE", as an example pick the Agents panel and inspect the json
  4. Observe that the json for Agents panel uses agent.name when it should use agent_name.
  5. Adjust to agent_name and see that this fixes the issue.

Expected behavior That the dashboards load properly on Wazuh 4.8 and above.

Screenshots image

image You can see above here that agent.name is used instead of agent_name