From 08a2150cbce351a406b36aa6b3259a65203354cf Mon Sep 17 00:00:00 2001 From: f-galland Date: Wed, 11 Dec 2024 10:48:53 -0300 Subject: [PATCH] Change wildcard type to keyword --- ecs/generate.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ecs/generate.sh b/ecs/generate.sh index 939367be6eaf7..e66cbb4c87d6d 100755 --- a/ecs/generate.sh +++ b/ecs/generate.sh @@ -50,6 +50,10 @@ generate_mappings() { # 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 "wildcard" type (showing as "unknown" on dashboard) with "keyword" + echo "Replacing \"wildcard\" type with \"keyword\"" + find "$OUT_DIR" -type f -exec sed -i 's/wildcard/keyword/g' {} \; # Replace "flattened" type (not supported by OpenSearch) with "flat_object" echo "Replacing \"flattened\" type with \"flat_object\""