Skip to content

Commit

Permalink
Add states-fim index template definition (#397)
Browse files Browse the repository at this point in the history
* Add stateless index template definition

Event generator is pending

* Update to 8.11.0

* Adding ecs mapping files for FIM index

* Fix indentation issue in subset.yml

* Remove hidden flag and event_generator

* Rename states-inventory-fim folder

* Fix subset.yml names

---------

Co-authored-by: Álex Ruiz <[email protected]>
  • Loading branch information
f-galland and AlexRuiz7 committed Nov 8, 2024
1 parent 071c1f1 commit 09bc22a
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 1 deletion.
12 changes: 12 additions & 0 deletions ecs/states-fim/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-fim/fields/mapping-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dynamic": "strict",
"date_detection": false
}
36 changes: 36 additions & 0 deletions ecs/states-fim/fields/subset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: wazuh-states-fim
fields:
base:
fields:
tags: []
agent:
fields:
id: {}
groups: {}
file:
fields:
attributes: {}
name: {}
path: {}
gid: {}
group: {}
inode: {}
hash:
fields:
md5: {}
sha1: {}
sha256: {}
mtime: {}
mode: {}
size: {}
target_path: {}
type: {}
uid: {}
owner: {}
registry:
fields:
key: {}
value: {}


21 changes: 21 additions & 0 deletions ecs/states-fim/fields/template-settings-legacy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"index_patterns": ["wazuh-states-fim*"],
"order": 1,
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"file.name",
"file.path",
"file.target_path",
"file.group",
"file.uid",
"file.gid"
]
}
}
}
23 changes: 23 additions & 0 deletions ecs/states-fim/fields/template-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"index_patterns": ["wazuh-states-fim*"],
"priority": 1,
"template": {
"settings": {
"index": {
"number_of_shards": "1",
"number_of_replicas": "0",
"refresh_interval": "5s",
"query.default_field": [
"agent.id",
"agent.groups",
"file.name",
"file.path",
"file.target_path",
"file.group",
"file.uid",
"file.gid"
]
}
}
}
}
2 changes: 1 addition & 1 deletion ecs/states-vulnerabilities/fields/subset.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: wazuh-inventory-vulnerabilities
name: wazuh-states-vulnerabilities
fields:
base:
fields:
Expand Down

0 comments on commit 09bc22a

Please sign in to comment.