Skip to content

Commit

Permalink
Update state-inventory-port ECS definition add interface at root level (
Browse files Browse the repository at this point in the history
#581)

LGTM! Merging
  • Loading branch information
QU3B1M authored Dec 6, 2024
1 parent e626d3d commit 1dd7be5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ def generate_random_data(number):
'protocol': random.choice(['TCP', 'UDP', 'ICMP'])
},
'process': generate_random_process(),
'source': generate_random_source()
'source': generate_random_source(),
'interface': {
'state': random.choice(['Active', 'Inactive', 'Unknown'])
}
}
data.append(event_data)
return data
Expand Down
4 changes: 4 additions & 0 deletions ecs/states-inventory-ports/fields/custom/interface.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
- name: interface
reusable:
top_level: true
expected:
- { at: observer.egress.interface, as: observer.ingress.interface }
title: Interface
type: group
group: 2
Expand Down

0 comments on commit 1dd7be5

Please sign in to comment.