Skip to content

Commit

Permalink
Recycle ecs/vulnerability-detector
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Sep 13, 2024
1 parent 6daea75 commit b5c8ca0
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 241 deletions.
114 changes: 0 additions & 114 deletions ecs/alerts/event-generator/event_generator.py

This file was deleted.

8 changes: 0 additions & 8 deletions ecs/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ generate_mappings() {
echo "Removing scaling_factor lines"
find "$OUT_DIR" -type f -exec sed -i '/scaling_factor/d' {} \;

# Replace "constant_keyword" type (not supported by OpenSearch) with "keyword"
echo "Replacing \"constant_keyword\" type with \"keyword\""
find "$OUT_DIR" -type f -exec sed -i 's/constant_keyword/keyword/g' {} \;

# Replace "flattened" type (not supported by OpenSearch) with "flat_object"
echo "Replacing \"flattened\" type with \"flat_object\""
find "$OUT_DIR" -type f -exec sed -i 's/flattened/flat_object/g' {} \;

local IN_FILE="$OUT_DIR/generated/elasticsearch/legacy/template.json"
local OUT_FILE="$OUT_DIR/generated/elasticsearch/legacy/template-tmp.json"

Expand Down

This file was deleted.

25 changes: 0 additions & 25 deletions ecs/states-inventory-vulnerabilities/fields/template-settings.json

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,4 @@
type: keyword
level: custom
description: >
The origin of the decision of the scanner (AKA feed used to detect the vulnerability).
- name: wazuh
title: Wazuh
description: >
Wazuh Inc. custom fields
fields:
- name: cluster.name
type: keyword
level: custom
description: >
Wazuh cluster name.
- name: cluster.node
type: keyword
level: custom
description: >
Wazuh cluster node name.
- name: schema.version
type: keyword
level: custom
description: >
Wazuh schema version.
The origin of the decision of the scanner (AKA feed used to detect the vulnerability).
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
- name: wazuh
title: Wazuh
description: >
Expand All @@ -14,13 +13,8 @@
level: custom
description: >
Wazuh cluster node name.
- name: manager.name
type: keyword
level: custom
description: >
Wazuh manager name. Used by dashboards to filter results on single node deployments.
- name: schema.version
type: keyword
level: custom
description: >
Wazuh schema version.
Wazuh schema version.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: wazuh-states-inventory-vulnerability
name: wazuh-inventory-vulnerabilities
fields:
base:
fields:
Expand Down
19 changes: 0 additions & 19 deletions ecs/vulnerability-detector/fields/custom/vulnerability.yml

This file was deleted.

4 changes: 0 additions & 4 deletions ecs/vulnerability-detector/fields/mapping-settings.json

This file was deleted.

19 changes: 0 additions & 19 deletions ecs/vulnerability-detector/fields/subset.yml

This file was deleted.

0 comments on commit b5c8ca0

Please sign in to comment.