Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECS docs #462

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
8891e75
Add ECS docs
AlexRuiz7 Oct 15, 2024
eb10ddd
Fix somes titles from ECS docs
AlexRuiz7 Oct 15, 2024
fc22c80
Merge 4.10.2 into master (#475)
AlexRuiz7 Oct 18, 2024
7420623
Fix tar packages plugin bundling (#466)
f-galland Oct 18, 2024
0310567
Implement Vagrantfile for generic testing environment (#474)
QU3B1M Oct 18, 2024
7918036
Fix pre-start.sh script for Vagrant environment (#479)
QU3B1M Oct 21, 2024
54cda64
Remove tailing hyphen from the states-vulnerabilities index pattern
AlexRuiz7 Oct 22, 2024
d8934c6
Use latest version of the states-vulnerabilities index template
AlexRuiz7 Oct 22, 2024
bf276c1
Merge branch 'master' into 270-add-ecs-index-templates
AlexRuiz7 Oct 22, 2024
7a9feb4
Merge branch 'master' into 270-add-ecs-index-templates
AlexRuiz7 Oct 22, 2024
0200822
Update states-vulnerability doc fixing groups field naming
QU3B1M Oct 23, 2024
528ee41
Merge branch 'master' into 270-add-ecs-index-templates
AlexRuiz7 Nov 5, 2024
3336994
Add documentation for network fields mappings
f-galland Nov 6, 2024
db57564
Set the right types for network fields
f-galland Nov 6, 2024
713c223
Fix remaining pending fields
f-galland Nov 6, 2024
7371312
Add states-inventory-networks mappings and template
f-galland Nov 7, 2024
a1084f5
Remove event.id from custom fields
f-galland Nov 7, 2024
21c938b
Add states-inventory-hardware mapping files
f-galland Nov 7, 2024
db78863
Add hotfixes template files
f-galland Nov 7, 2024
e83b2b5
Moving hardware specs from device to host
f-galland Nov 7, 2024
45a8f39
Add custom level flag to custom hardware fields
f-galland Nov 7, 2024
ec73406
Fix custom fields in hotfixes template
f-galland Nov 7, 2024
284a6b3
Fix nested custom fields
f-galland Nov 8, 2024
979d5b7
Switch nested objects to dotted notation
f-galland Nov 8, 2024
a9606b0
Used dotted notation for hotfixes
f-galland Nov 8, 2024
1f668f7
Add agent object
f-galland Nov 8, 2024
af58561
Fix doc files
f-galland Nov 8, 2024
e22b417
Split ports to its own index
f-galland Nov 11, 2024
0b6ae82
Add ports docs
f-galland Nov 11, 2024
4731cd0
Add ports docs
f-galland Nov 11, 2024
3a93c10
Remove port fields off networks table
f-galland Nov 11, 2024
a55f688
Update networks index subset
f-galland Nov 11, 2024
e7eeb81
Update networks index custom fields
f-galland Nov 11, 2024
73776e6
Update ecs/docs/inventory-4.x.md
AlexRuiz7 Nov 11, 2024
76fd1a5
Merge branch 'master-2.16.0' into 270-add-ecs-index-templates
AlexRuiz7 Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ecs/states-inventory-networks/fields/custom/agent.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: agent
title: Wazuh Agents
short: Wazuh Inc. custom fields.
type: group
group: 2
fields:
- name: groups
type: keyword
level: custom
description: >
The groups the agent belongs to.
13 changes: 13 additions & 0 deletions ecs/states-inventory-networks/fields/custom/event.yml
AlexRuiz7 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: event
title: Event
type: group
group: 2
description: >
Event related data.
fields:
- name: id
type: keyword
level: custom
description: >
Reference to the scan information.
56 changes: 56 additions & 0 deletions ecs/states-inventory-networks/fields/custom/host.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
- name: host
title: Host
type: group
group: 2
description: >
Host related data.
fields:
- name: network
type: group
group: 2
description: >
Host related network data.
fields:
- name: egress
type: group
group: 2
description: >
Outgoing network related data.
fields:
- name: drops
type: long
level: custom
description: >
Number of dropped transmitted packets.
- name: errors
type: long
level: custom
description: >
Number of transmission errors.
- name: queue
type: long
level: custom
description: >
Transmit queue length.
- name: ingress
type: group
group: 2
description: >
Incoming network related data.
fields:
- name: drops
type: long
level: custom
description: >
Number of dropped received packets.
- name: errors
type: long
level: custom
description: >
Number of reception errors.
- name: queue
type: long
level: custom
description: >
Receive queue length.
23 changes: 23 additions & 0 deletions ecs/states-inventory-networks/fields/custom/interface.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: interface
title: Interface
type: group
group: 2
description: >
Network interface related data.
fields:
- name: mtu
type: long
level: custom
description: >
Maximum transmission unit size.
- name: state
type: keyword
level: custom
description: >
State of the network interface.
- name: type
type: keyword
level: custom
description: >
Interface type.
33 changes: 33 additions & 0 deletions ecs/states-inventory-networks/fields/custom/network.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
- name: network
title: Network
type: group
group: 2
description: >
Network related data.
fields:
- name: broadcast
type: ip
level: custom
description: >
Broadcast address
- name: dhcp
type: keyword
level: custom
description: >
DHCP status (enabled, disabled, unknown, BOOTP)
- name: gateway
type: ip
level: custom
description: >
Gateway address
- name: metric
type: long
level: custom
description: >
Metric of the network protocol
- name: netmask
type: ip
level: custom
description: >
Network mask
4 changes: 4 additions & 0 deletions ecs/states-inventory-networks/fields/mapping-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dynamic": "strict",
"date_detection": false
}
51 changes: 51 additions & 0 deletions ecs/states-inventory-networks/fields/subset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: wazuh-states-inventory-networks
fields:
base:
fields:
tags: []
"@timestamp": {}
destination:
fields:
ip: {}
port: {}
device:
fields:
id: {}
file:
fields:
inode: {}
host:
fields:
ip: {}
mac: {}
network:
fields:
egress:
fields:
bytes: {}
packets: {}
ingress:
fields:
bytes: {}
packets: {}
network:
fields:
protocol: {}
type: {}
observer:
fields:
ingress:
fields:
interface:
fields:
alias: {}
name: {}
process:
fields:
name: {}
pid: {}
source:
fields:
ip: {}
port: {}
20 changes: 20 additions & 0 deletions ecs/states-inventory-networks/fields/template-settings-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"index_patterns": ["wazuh-states-inventory-networks*"],
"order": 1,
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"device.id",
"host.ip",
"observer.ingress.interface.name",
"observer.ingress.interface.alias",
"process.name"
]
}
}
}
24 changes: 24 additions & 0 deletions ecs/states-inventory-networks/fields/template-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"index_patterns": [
"wazuh-states-inventory-networks*"
],
"priority": 1,
"template": {
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"device.id",
"host.ip",
"observer.ingress.interface.name",
"observer.ingress.interface.alias",
"process.name"
]
}
}
}
}