Ensure IPs are typed as IP and ports as integer

This commit is contained in:
Wes Lambert
2020-09-29 18:20:15 +00:00
parent ebe00822f8
commit 36019727b3
2 changed files with 40 additions and 22 deletions

View File

@@ -7,6 +7,7 @@
"number_of_shards":1, "number_of_shards":1,
"index.refresh_interval":"30s", "index.refresh_interval":"30s",
"index.routing.allocation.require.box_type":"hot", "index.routing.allocation.require.box_type":"hot",
"index.mapping.total_fields.limit": "1500",
"analysis": { "analysis": {
"analyzer": { "analyzer": {
"es_security_analyzer": { "es_security_analyzer": {
@@ -41,7 +42,25 @@
"dynamic":false, "dynamic":false,
"date_detection":false, "date_detection":false,
"dynamic_templates": [ "dynamic_templates": [
{ {
"ip_address": {
"match_mapping_type": "string",
"path_match": "*.ip",
"mapping": {
"type": "ip"
}
}
},
{
"port": {
"match_mapping_type": "string",
"path_match": "*.port",
"mapping": {
"type": "integer"
}
}
},
{
"strings": { "strings": {
"match_mapping_type": "string", "match_mapping_type": "string",
"mapping": { "mapping": {
@@ -59,8 +78,7 @@
} }
} }
} }
} }],
],
"properties":{ "properties":{
"@timestamp":{ "@timestamp":{
"type":"date" "type":"date"

File diff suppressed because one or more lines are too long