-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json.tmpl
73 lines (73 loc) · 1.54 KB
/
template.json.tmpl
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"aliases": {},
"mappings": {
"_default_": {
"_all": {
"enabled": true,
"norms": false
},
"properties": {
"@version": {
"type": "keyword",
"include_in_all": false
},
"@timestamp": {
"type": "date",
"include_in_all": false
},
"geoip": {
"properties": {
"longitude": {
"type": "half_float"
},
"location": {
"type": "geo_point"
},
"ip": {
"type": "ip"
},
"latitude": {
"type": "half_float"
}
},
"dynamic": true
}
},
"dynamic_templates": [
{
"message_field": {
"match_mapping_type": "string",
"mapping": {
"type": "text",
"norms": false
},
"path_match": "message"
}
},
{
"string_fields": {
"match": "*",
"match_mapping_type": "string",
"mapping": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
},
"norms": false
}
}
}
]
}
},
"settings": {
"index": {
"refresh_interval": "5s",
"number_of_shards": "{{ .NumberOfShards }}"
}
},
"template": "{{ .TemplatePattern }}",
"order": {{ .TemplateOrder }}
}