Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend vulnerability states template for a new field in agent.labels.group #622

Open
AlexandrBubenchikov opened this issue Dec 28, 2024 · 0 comments
Labels
reporter/community Issue reported by the community

Comments

@AlexandrBubenchikov
Copy link

Background:
I found a post at https://groups.google.com/g/wazuh/c/IJMvVJh21wI
I looked at the functionality described at https://documentation.wazuh.com/current/user-manual/agents/labels.html

My current situation:
When distributing wazuh agents via an ansible role (https://github.com/wazuh/wazuh-ansible/tree/master/roles/wazuh/ansible-wazuh-agent) I give them an additional parameter label in ossec.conf. The result is

...
  <labels>
    <label key="group">Sandbox_group</label>
  </labels>
...

As a result, I can see new messages in the wazuh-alerts-* index
Sample message:

...
{
....
"agent": {
      "ip": "192.168.0.1",
      "name": "test_server",
      "id": "01",
      "labels": {
        "group": "Sandbox_group"
      }
    },
...
}
...

Question:
How can I get the agent.labels.group field to appear in the wazuh-states-vulnerabilities-* index so that I can filter and group vulnerabilities by this field?

Suggestions for improvement:
I found a similar improvement with adding a field in this issue #157.
Please improve similar functionality for labels.

@AlexandrBubenchikov AlexandrBubenchikov added level/task Task issue type/enhancement Enhancement issue labels Dec 28, 2024
@AlexRuiz7 AlexRuiz7 added reporter/community Issue reported by the community and removed level/task Task issue type/enhancement Enhancement issue labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community Issue reported by the community
Projects
None yet
Development

No branches or pull requests

2 participants