Skip to content

Commit

Permalink
Update wazuh-states-vulnerabilities index mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Mar 19, 2024
1 parent 0958ec3 commit 98d42e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ecs/vulnerability-detector/event-generator/event_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def generate_random_wazuh():
},
'schema': {
'version': '1.7.0'
}
},
'detected_at': generate_random_date(),
'published_at': generate_random_date()
}
return wazuh

Expand All @@ -188,7 +190,7 @@ def generate_random_data(number):
data = []
for _ in range(number):
event_data = {
'@timestamp': generate_random_date(),
# '@timestamp': generate_random_date(),
'agent': generate_random_agent(),
# 'ecs': {'version': '1.7.0'},
# 'event': generate_random_event(),
Expand Down
12 changes: 11 additions & 1 deletion ecs/vulnerability-detector/fields/custom/wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@
type: keyword
level: custom
description: >
Wazuh schema version.
Wazuh schema version.
- name: detected_at
type: date
level: custom
description: >
Vulnerability's detection date.
- name: published_at
type: date
level: custom
description: >
Vulnerability's publication date.
1 change: 0 additions & 1 deletion ecs/vulnerability-detector/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: vulnerability_detector
fields:
base:
fields:
"@timestamp": {}
tags: []
message: ""
agent:
Expand Down

0 comments on commit 98d42e8

Please sign in to comment.