Merge pull request #3061 from Security-Onion-Solutions/foxtrot

Fix Playbook Fields & Mappings
This commit is contained in:
Josh Brower
2021-02-21 09:40:59 -05:00
committed by GitHub
2 changed files with 38 additions and 15 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Copyright 2014,2015,2016,2017,2018,2019,2020,2021 Security Onion Solutions, LLC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. /usr/sbin/so-common
docker exec so-soctopus python3 playbook_play-update.py

View File

@@ -12,18 +12,16 @@
"analyzer": { "analyzer": {
"es_security_analyzer": { "es_security_analyzer": {
"type": "custom", "type": "custom",
"filter": [ "path_hierarchy_pattern_filter", "lowercase" ], "char_filter": [ "whitespace_no_way" ],
"tokenizer": "whitespace" "filter": [ "lowercase", "trim" ],
"tokenizer": "keyword"
}
}, },
"es_security_search_analyzer": { "char_filter": {
"type": "custom", "whitespace_no_way": {
"filter": [ "lowercase" ], "type": "pattern_replace",
"tokenizer": "whitespace" "pattern": "(\\s)+",
}, "replacement": "$1"
"es_security_search_quote_analyzer": {
"type": "custom",
"filter": [ "lowercase" ],
"tokenizer": "whitespace"
} }
}, },
"filter" : { "filter" : {
@@ -35,6 +33,12 @@
"((?:[^/]*/)*)(.*)" "((?:[^/]*/)*)(.*)"
] ]
} }
},
"tokenizer": {
"path_tokenizer": {
"type": "path_hierarchy",
"delimiter": "\\"
}
} }
} }
}, },
@@ -67,13 +71,12 @@
"type": "text", "type": "text",
"fields": { "fields": {
"keyword": { "keyword": {
"ignore_above": 32765,
"type": "keyword" "type": "keyword"
}, },
"security": { "security": {
"type": "text", "type": "text",
"analyzer": "es_security_analyzer", "analyzer": "es_security_analyzer"
"search_analyzer": "es_security_search_analyzer",
"search_quote_analyzer": "es_security_search_quote_analyzer"
} }
} }
} }