From 5fe025318bf21866de33144bbac2bfa7d0b9ae6d Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Mon, 15 Mar 2021 15:53:00 -0400 Subject: [PATCH] Update Sigmac mappings and config for IPs and ports --- .../templates/so/so-common-template.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/salt/elasticsearch/templates/so/so-common-template.json b/salt/elasticsearch/templates/so/so-common-template.json index 012c590d0..5e05896c3 100644 --- a/salt/elasticsearch/templates/so/so-common-template.json +++ b/salt/elasticsearch/templates/so/so-common-template.json @@ -51,7 +51,14 @@ "match_mapping_type": "string", "path_match": "*.ip", "mapping": { - "type": "ip" + "type": "ip", + "fields" : { + "keyword" : { + "ignore_above" : 45, + "type" : "keyword" + } + } + } } }, @@ -60,7 +67,14 @@ "match_mapping_type": "string", "path_match": "*.port", "mapping": { - "type": "integer" + "type": "integer", + "fields" : { + "keyword" : { + "ignore_above" : 10, + "type" : "keyword" + } + } + } } },