Skip to content

Commit

Permalink
Add new custom field to the vulnerability detector index
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Jan 23, 2024
1 parent 52baf4e commit be84ada
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# build files
artifacts/

.java
.m2

# intellij files
.idea/
*.iml
Expand Down
1 change: 1 addition & 0 deletions ecs/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ generate_mappings() {
--subset "$IN_FILES_DIR/subset.yml" \
--template-settings "$IN_FILES_DIR/template-settings.json" \
--template-settings-legacy "$IN_FILES_DIR/template-settings-legacy.json" \
--mapping-settings "$IN_FILES_DIR/mapping-settings.json" \
--out "$OUT_DIR" || exit 1

# Replace "match_only_text" type (not supported by OpenSearch) with "text"
Expand Down
7 changes: 6 additions & 1 deletion ecs/vulnerability-detector/fields/custom/wazuh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@
type: keyword
level: custom
description: >
Wazuh cluster name.
Wazuh cluster name.
- name: cluster.node
type: keyword
level: custom
description: >
Wazuh cluster node name.
4 changes: 4 additions & 0 deletions ecs/vulnerability-detector/fields/mapping-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"dynamic": "strict",
"date_detection": false
}

0 comments on commit be84ada

Please sign in to comment.