Skip to content

Commit

Permalink
Update vulnerability-states fields (#177)
Browse files Browse the repository at this point in the history
* Update vulnerability-states fields

Adds wazuh.schema.version

* Update events generator
  • Loading branch information
AlexRuiz7 committed Sep 9, 2024
1 parent 092874c commit 8e4d75b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def generate_random_wazuh():
},
'manager': {
'name': f'wazuh-manager-{random.randint(0,10)}'
},
'schema': {
'version': '1.7.0'
}
}
return wazuh
Expand All @@ -187,7 +190,7 @@ def generate_random_data(number):
event_data = {
'@timestamp': generate_random_date(),
'agent': generate_random_agent(),
'ecs': {'version': '1.7.0'},
# 'ecs': {'version': '1.7.0'},
# 'event': generate_random_event(),
'host': generate_random_host(),
# 'labels': generate_random_labels(),
Expand Down
7 changes: 6 additions & 1 deletion ecs/vulnerability-detector/fields/custom/wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
type: keyword
level: custom
description: >
Wazuh manager name. Used by dashboards to filter results on single node deployments.
Wazuh manager name. Used by dashboards to filter results on single node deployments.
- name: schema.version
type: keyword
level: custom
description: >
Wazuh schema version.
2 changes: 0 additions & 2 deletions ecs/vulnerability-detector/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ fields:
message: ""
agent:
fields: "*"
ecs:
fields: "*"
package:
fields: "*"
host:
Expand Down

0 comments on commit 8e4d75b

Please sign in to comment.