Skip to content

Commit

Permalink
Merge branch 'master' into 404-add-states-inventory-vulnerabilities-i…
Browse files Browse the repository at this point in the history
…ndex-template-definition
  • Loading branch information
AlexRuiz7 authored Sep 13, 2024
2 parents ff7a479 + c8a1c2b commit 6daea75
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ecs/states-inventory-system/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.
4 changes: 4 additions & 0 deletions ecs/states-inventory-system/fields/mapping-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dynamic": "strict",
"date_detection": false
}
23 changes: 23 additions & 0 deletions ecs/states-inventory-system/fields/subset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: wazuh-states-inventory-system
fields:
base:
fields:
tags: []
"@timestamp": {}
agent:
fields:
id: {}
groups: {}
host:
fields:
architecture: {}
hostname: {}
name: {}
os:
fields:
kernel: {}
full: {}
platform: {}
version: {}
type: {}
18 changes: 18 additions & 0 deletions ecs/states-inventory-system/fields/template-settings-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"index_patterns": ["wazuh-states-inventory-system*"],
"order": 1,
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"host.name",
"host.os.type",
"host.os.version"
]
}
}
}
20 changes: 20 additions & 0 deletions ecs/states-inventory-system/fields/template-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"index_patterns": ["wazuh-states-inventory-system*"],
"priority": 1,
"template": {
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"host.name",
"host.os.type",
"host.os.version"
]
}
}
}
}

0 comments on commit 6daea75

Please sign in to comment.