Skip to content

Commit

Permalink
Remove base.labels ECS field from wazuh-states-vulnerabilities index …
Browse files Browse the repository at this point in the history
…mappings
  • Loading branch information
AlexRuiz7 committed Jan 24, 2024
1 parent 918c959 commit ac0d8c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ecs/vulnerability-detector/event-generator/event_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def generate_random_vulnerability():
'temporal': round(random.uniform(0, 10), 1),
'version': round(random.uniform(0, 10), 1)
},
'severity': random.choice(['low', 'medium', 'high', 'critical'])
'severity': random.choice(['Low', 'Medium', 'High', 'Critical'])
}
return vulnerability

Expand All @@ -187,7 +187,7 @@ def generate_random_data(number):
'ecs': {'version': '1.7.0'},
# 'event': generate_random_event(),
'host': generate_random_host(),
'labels': generate_random_labels(),
# 'labels': generate_random_labels(),
'message': f'message{random.randint(0, 99999)}',
'package': generate_random_package(),
'tags': generate_random_tags(),
Expand Down
5 changes: 4 additions & 1 deletion ecs/vulnerability-detector/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: vulnerability_detector
fields:
base:
fields: "*"
fields:
"@timestamp": {}
tags: []
message: ""
agent:
fields: "*"
ecs:
Expand Down

0 comments on commit ac0d8c0

Please sign in to comment.