-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathes_template.json
31 lines (30 loc) · 1019 Bytes
/
es_template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#a template is used for elasticsearch mapping fields to data types and set its attributes
#sample template
#deploye it using curl
#the template will apply to all new indexes specified in pattern
#usage:
#curl -XPUT http://you-elastic-fqdn-or-ip:9200/_template/template_name -d@template_file_name.json
{
"template" : "*ib-matrix*",
"settings" : {
"number_of_shards" : 1
},
"mappings": {
"runTheMatrix-data": {
"properties": {
"workflow":{"type":"string", "index": "not_analyzed"},
"release":{"type":"string", "index": "not_analyzed"},
"architecture":{"type":"string", "index": "not_analyzed"},
"hostname":{"type":"string", "index": "not_analyzed"},
"timestp":{"type":"date", "format" : "yyyy-MM-dd HH:mm:ss"},
"errors": {
"properties": {
"kind": {"type": "string", "index": "not_analyzed"},
"error": {"type": "string"}
}
},
"exception": {"type": "string", "index": "not_analyzed"}
}
}
}
}