Skip to content

Commit

Permalink
Add custom fields to index templates
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Nov 12, 2024
1 parent c357c76 commit 2cd512e
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 71 deletions.
6 changes: 0 additions & 6 deletions ecs/agent/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
6 changes: 0 additions & 6 deletions ecs/alerts/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
2 changes: 2 additions & 0 deletions ecs/states-fim/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
file:
fields:
attributes: {}
Expand Down
6 changes: 0 additions & 6 deletions ecs/states-inventory-hardware/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
4 changes: 2 additions & 2 deletions ecs/states-inventory-hardware/fields/custom/host.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: host
reusable:
top_level: false
top_level: true
expected:
- agent
- { at: agent, as: host }
29 changes: 16 additions & 13 deletions ecs/states-inventory-hardware/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
observer:
fields:
serial_number: {}
host:
fields:
memory:
fields:
total: {}
free: {}
used:
fields:
percentage: {}
cpu:
fields:
name: {}
cores: {}
speed: {}
fields: "*"
# fields:
# memory:
# fields:
# total: {}
# free: {}
# used:
# fields:
# percentage: {}
# cpu:
# fields:
# name: {}
# cores: {}
# speed: {}
6 changes: 0 additions & 6 deletions ecs/states-inventory-hotfixes/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
4 changes: 3 additions & 1 deletion ecs/states-inventory-hotfixes/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
package:
fields:
hotfix:
fields:
name: {}
name: {}
6 changes: 0 additions & 6 deletions ecs/states-inventory-networks/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
2 changes: 2 additions & 0 deletions ecs/states-inventory-networks/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
host:
fields:
ip: {}
Expand Down
6 changes: 0 additions & 6 deletions ecs/states-inventory-packages/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
2 changes: 2 additions & 0 deletions ecs/states-inventory-packages/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
package:
fields:
architecture: ""
Expand Down
6 changes: 0 additions & 6 deletions ecs/states-inventory-ports/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
2 changes: 2 additions & 0 deletions ecs/states-inventory-ports/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
destination:
fields:
ip: {}
Expand Down
6 changes: 0 additions & 6 deletions ecs/states-inventory-processes/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
4 changes: 3 additions & 1 deletion ecs/states-inventory-processes/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ fields:
agent:
fields:
id: {}
groups: {}
groups: {}
host:
fields: "*"
process:
fields:
pid: {}
Expand Down
6 changes: 0 additions & 6 deletions ecs/states-inventory-system/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,9 @@
type: date
level: custom
description: >
<<<<<<< HEAD:ecs/agent/fields/custom/wazuh-agent.yml
The agent's last login.
- name: status
type: keyword
=======
The last time the agent logged in.
- name: is_connected
type: boolean
>>>>>>> master:ecs/agent/fields/custom/agent.yml
level: custom
description: >
Agents' interpreted connection status depending on `agent.last_login`.
Expand Down
2 changes: 2 additions & 0 deletions ecs/states-inventory-system/fields/subset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ fields:
fields:
id: {}
groups: {}
host:
fields: "*"
host:
fields:
architecture: {}
Expand Down
20 changes: 20 additions & 0 deletions ecs/states-vulnerabilities/fields/custom/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,23 @@
level: custom
description: >
List of groups the agent belong to.
- name: key
type: keyword
level: custom
description: >
The registration key of the agent.
- name: last_login
type: date
level: custom
description: >
The agent's last login.
- 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

0 comments on commit 2cd512e

Please sign in to comment.