diff --git a/perfmon-es-mapping-template b/perfmon-es-mapping-template new file mode 100644 index 0000000..ed6013e --- /dev/null +++ b/perfmon-es-mapping-template @@ -0,0 +1,53 @@ +{ + "order": 0, + "template": "log_perfmon-*", + "settings": { + "index": { + "mapping": { + "ignore_malformed": "true" + }, + "refresh_interval": "5s", + "unassigned": { + "node_left": { + "delayed_timeout": "3m" + } + }, + "number_of_shards": "1", + "number_of_replicas": "1" + } + }, + "mappings": { + "perfmon": { + "_all": { + "enabled": false + }, + "dynamic_templates": [ + { + "float_fields": { + "mapping": { + "index": false, + "type": "float", + "doc_values": true + }, + "match": "*" + } + } + ], + "properties": { + "hostname": { + "type": "keyword" + }, + "@timestamp": { + "format": "strict_date_optional_time||epoch_millis", + "type": "date" + } + "type": { + "type": "keyword" + }, + "tags": { + "type": "keyword" + } + } + } + } +}