Hi All,
I just start with ES to collect data from a netflow sensor for our company. I have implement nprobe to send data, everything is ok but the template given by nprobe is not compatible with the last version of ES. I need some help to adapt the template, i hope everyone can help me. Here the original template that is compatible with an older version of ES :
{ "template" : "nprobe-*", "settings" : { "index.refresh_interval" : "5s" }, "mappings" : { "_default_" : { "_all" : {"enabled" : true, "omit_norms" : true}, "dynamic_templates" : [ { "string_fields" : { "match" : "*", "match_mapping_type" : "string", "mapping" : { "type" : "string", "index" : "analyzed", "omit_norms" : true, "fields" : { "raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256} } } } }, { "geo_fields" : { "match" : "*_IP_LOCATION", "mapping": { "type": "geo_point" } } }, { "ip_fields" : { "match" : "IPV4_*", "match_mapping_type" : "string", "mapping": { "type": "ip" } } } ], "properties" : { "@version": { "type": "string", "index": "not_analyzed" } } } }
and my adaptation :
PUT nprobe { "mappings" : { "_default_" : { "_all" : { "norms" : true }, "dynamic_templates" : [ { "strings" : { "match_mapping_type": "string", "match" : "*", "mapping" : { "type" : "text", "index" : true , "norms" : true, "fields" : { "raw" : {"type": "keyword", "index" : false, "ignore_above" : 256} } } } }, { "geo_fields" : { "match" : "*_IP_LOCATION", "mapping": { "type": "geo_point" } } }, { "ip_fields" : { "match" : "IPV4_*", "match_mapping_type" : "string", "mapping": { "type": "ip" } } } ], "properties" : { "@version": { "type": "text", "index": false } } } } }
the result :
#! Deprecation: [_all] is deprecated in 6.0+ and will be removed in 7.0. As a replacement, you can use [copy_to] on mapping fields to create your own catch all field. #! Deprecation: [_default_] mapping is deprecated since it is not useful anymore now that indexes cannot have more than one type { "acknowledged": true, "shards_acknowledged": true, "index": "nprobe" }
I don't know about the _copyto and where to put it.
Other, my nprobe create each day a new index : nprobe-%d-%m-%Y i have try to create a mapping with :
`
PUT nprobe*
but don't work, thank you in advance for any help.
`