Skip to content

Commit

Permalink
Fix agents events generator
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Nov 15, 2024
1 parent ab89d6f commit 10f7e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ecs/agent/event-generator/event_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def generate_random_agent():
'status': random.choice(['active', 'inactive']),
'last_login': generate_random_date(),
'groups': [f'group{random.randint(0, 99)}', f'group{random.randint(0, 99)}'],
'key': f'key{random.randint(0, 999)}'
'key': f'key{random.randint(0, 999)}',
'host': generate_random_host()
}
return agent

Expand Down Expand Up @@ -125,8 +126,7 @@ def generate_random_data(number):
data = []
for _ in range(number):
event_data = {
'agent': generate_random_agent(),
'host': generate_random_host(),
'agent': generate_random_agent()
}
data.append(event_data)
return data
Expand Down
1 change: 1 addition & 0 deletions test-tools/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wazuh-certificates.tar

0 comments on commit 10f7e3b

Please sign in to comment.