Skip to content

Commit

Permalink
Add tty char_device.major field to processes mapping
Browse files Browse the repository at this point in the history
Update event generator to implement tty fields
  • Loading branch information
QU3B1M committed Dec 6, 2024
1 parent 1dd7be5 commit 1537f13
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ def generate_random_process():
},
'user': {
'id': f'userid{random.randint(0, 9999)}'
},
'tty': {
'char_device': {
'major': random.randint(0, 5)
}
}
}
return process
Expand Down
5 changes: 5 additions & 0 deletions ecs/states-inventory-processes/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ fields:
thread:
fields:
id: ""
tty:
fields:
char_device:
fields:
major: ""

0 comments on commit 1537f13

Please sign in to comment.