Skip to content

Commit f0b2ab8

Browse files
abbonnoAlexRuiz7
andauthored
Enhance FIM and Inventory indices settings (#939)
Co-authored-by: Álex Ruiz Becerra <[email protected]>
1 parent 79bb21f commit f0b2ab8

File tree

34 files changed

+203
-36
lines changed

34 files changed

+203
-36
lines changed

ecs/states-fim-files/docs/fields.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1313
8.11.0,true,file,file.mtime,date,extended,,,Last time the file content was modified.
1414
8.11.0,true,file,file.owner,keyword,extended,,alice,File owner's username.
1515
8.11.0,true,file,file.path,keyword,extended,,/home/alice/example.png,"Full path to the file, including the file name."
16-
8.11.0,true,file,file.path.text,keyword,extended,,/home/alice/example.png,"Full path to the file, including the file name."
1716
8.11.0,true,file,file.size,long,extended,,16384,File size in bytes.
1817
8.11.0,true,file,file.uid,keyword,extended,,1001,The user ID (UID) or security identifier (SID) of the file owner.
1918
8.11.0,true,wazuh,wazuh.cluster.name,keyword,custom,,,Wazuh cluster name.

ecs/states-fim-files/fields/template-settings-legacy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"index": {
66
"number_of_shards": "1",
77
"number_of_replicas": "0",
8+
"auto_expand_replicas": "0-1",
89
"refresh_interval": "5s",
910
"query.default_field": [
1011
"agent.host.architecture",

ecs/states-fim-files/fields/template-settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"index": {
77
"number_of_shards": "1",
88
"number_of_replicas": "0",
9+
"auto_expand_replicas": "0-1",
910
"refresh_interval": "5s",
1011
"query.default_field": [
1112
"agent.host.architecture",

ecs/states-fim-registries/fields/template-settings-legacy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"index": {
66
"number_of_shards": "1",
77
"number_of_replicas": "0",
8+
"auto_expand_replicas": "0-1",
89
"refresh_interval": "5s",
910
"query.default_field": [
1011
"agent.host.architecture",

ecs/states-fim-registries/fields/template-settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"index": {
77
"number_of_shards": "1",
88
"number_of_replicas": "0",
9+
"auto_expand_replicas": "0-1",
910
"refresh_interval": "5s",
1011
"query.default_field": [
1112
"agent.host.architecture",

ecs/states-inventory-hardware/fields/template-settings-legacy.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@
55
"index": {
66
"number_of_shards": "1",
77
"number_of_replicas": "0",
8+
"auto_expand_replicas": "0-1",
89
"refresh_interval": "5s",
910
"query.default_field": [
10-
"host.serial_number"
11+
"agent.host.architecture",
12+
"agent.host.ip",
13+
"agent.id",
14+
"agent.name",
15+
"agent.version",
16+
"agent.host.ip",
17+
"host.serial_number",
18+
"wazuh.cluster.name",
19+
"wazuh.cluster.node",
20+
"wazuh.schema.version"
1121
]
1222
}
1323
}

ecs/states-inventory-hardware/fields/template-settings.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,21 @@
88
"index": {
99
"number_of_shards": "1",
1010
"number_of_replicas": "0",
11+
"auto_expand_replicas": "0-1",
1112
"refresh_interval": "5s",
1213
"query.default_field": [
13-
"host.serial_number"
14+
"agent.host.architecture",
15+
"agent.host.ip",
16+
"agent.id",
17+
"agent.name",
18+
"agent.version",
19+
"agent.host.ip",
20+
"host.serial_number",
21+
"wazuh.cluster.name",
22+
"wazuh.cluster.node",
23+
"wazuh.schema.version"
1424
]
1525
}
1626
}
1727
}
18-
}
28+
}

ecs/states-inventory-hotfixes/fields/template-settings-legacy.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@
55
"index": {
66
"number_of_shards": "1",
77
"number_of_replicas": "0",
8+
"auto_expand_replicas": "0-1",
89
"refresh_interval": "5s",
910
"query.default_field": [
10-
"package.hotfix.name"
11+
"agent.host.architecture",
12+
"agent.host.ip",
13+
"agent.id",
14+
"agent.name",
15+
"agent.version",
16+
"package.hotfix.name",
17+
"wazuh.cluster.name",
18+
"wazuh.cluster.node",
19+
"wazuh.schema.version"
1120
]
1221
}
1322
}

ecs/states-inventory-hotfixes/fields/template-settings.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,20 @@
88
"index": {
99
"number_of_shards": "1",
1010
"number_of_replicas": "0",
11+
"auto_expand_replicas": "0-1",
1112
"refresh_interval": "5s",
1213
"query.default_field": [
13-
"package.hotfix.name"
14+
"agent.host.architecture",
15+
"agent.host.ip",
16+
"agent.id",
17+
"agent.name",
18+
"agent.version",
19+
"package.hotfix.name",
20+
"wazuh.cluster.name",
21+
"wazuh.cluster.node",
22+
"wazuh.schema.version"
1423
]
1524
}
1625
}
1726
}
18-
}
27+
}

ecs/states-inventory-interfaces/docs/fields.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1313
8.11.0,true,host,host.network.ingress.drops,long,custom,,,Number of dropped received packets.
1414
8.11.0,true,host,host.network.ingress.errors,long,custom,,,Number of reception errors.
1515
8.11.0,true,host,host.network.ingress.packets,long,extended,,,The number of packets received on all network interfaces.
16+
8.11.0,true,interface,interface.alias,keyword,extended,,outside,Interface alias
17+
8.11.0,true,interface,interface.mtu,long,custom,,,Maximum transmission unit size.
18+
8.11.0,true,interface,interface.name,keyword,extended,,eth0,Interface name
19+
8.11.0,true,interface,interface.state,keyword,custom,,,State of the network interface.
20+
8.11.0,true,interface,interface.type,keyword,custom,,,Interface type.
1621
8.11.0,true,wazuh,wazuh.cluster.name,keyword,custom,,,Wazuh cluster name.
1722
8.11.0,true,wazuh,wazuh.cluster.node,keyword,custom,,,Wazuh cluster node name.
1823
8.11.0,true,wazuh,wazuh.schema.version,keyword,custom,,,Wazuh schema version.

0 commit comments

Comments
 (0)