Skip to content

Commit

Permalink
Add host schema to agent object
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Nov 12, 2024
1 parent 98a6767 commit 32ac663
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 9 deletions.
18 changes: 18 additions & 0 deletions ecs/agent/fields/custom/host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: host
title: Wazuh Agents
short: Wazuh Inc. custom fields.
level: core
type: group
group: 0
reusable:
top_level: false
expected:
- agent
fields:
- name: os
title: Operating system
level: custom
type: keyword
description: >
Agent's operating system
15 changes: 13 additions & 2 deletions ecs/agent/fields/custom/wazuh-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,19 @@
level: custom
description: >
The agent's last login.
- name: is_connected
type: boolean
- name: status
type: keyword
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
allowed_values:
- name: active
description: Active agent status
- name: disconnected
description: Disconnected agent status
- name: host
type: group
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
fields: "*"
15 changes: 8 additions & 7 deletions ecs/agent/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ fields:
groups: {}
key: {}
last_login: {}
is_connected: {}
host:
fields:
ip: {}
os:
fields:
full: {}
status: {}
host:
fields: "*"
# fields: "*"
# ip: {}
# os:
# fields:
# full: {}

0 comments on commit 32ac663

Please sign in to comment.