-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-mappings-platform.json.erb
85 lines (81 loc) · 3.22 KB
/
index-mappings-platform.json.erb
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
74
75
76
77
78
79
80
81
82
83
84
85
<%
# This file contains mappings specific for 'platform' indicies.
#
# By default all string fields are set as `keyword` (not analyzed values).
#
require 'json'
keyword_default = { "type": "keyword", "index": true }.to_json
%>
{
"template" : "<%= p('elasticsearch_config.platform_index_prefix') %>*",
"settings": <%= p('elasticsearch_config.platform_index_settings', {}).to_json %>,
"order": 204,
"mappings" : {
<%# ------------ Platform specific fields %>
"properties": {
"geoip" : {
"type" : "object",
"dynamic": true,
"properties" : {
"location" : { "type" : "geo_point" }
}
},
"uaa": {
"type": "object",
"dynamic": true,
"properties": {
"timestamp": <%= keyword_default %>,
"pid": { "type": "long" },
"thread": <%= keyword_default %>,
"log_category": <%= keyword_default %>,
"audit": {
"type": "object",
"dynamic": true,
"properties": {
"type": <%= keyword_default %>,
"data": <%= keyword_default %>,
"principal": <%= keyword_default %>,
"origin": <%= keyword_default %>,
"identity_zone_id": <%= keyword_default %>,
"remote_address": <%= keyword_default %>
}
}
}
},
"haproxy": {
"type": "object",
"dynamic": true,
"properties": {
"client_ip": <%= keyword_default %>,
"client_port": { "type": "long" },
"accept_date": <%= keyword_default %>,
"frontend_name": <%= keyword_default %>,
"backend_name": <%= keyword_default %>,
"bind_name": <%= keyword_default %>,
"server_name": <%= keyword_default %>,
"time_request": { "type": "long" },
"time_queue": { "type": "long" },
"time_backend_connect": { "type": "long" },
"time_backend_response": { "type": "long" },
"time_duration": { "type": "long" },
"http_status_code": { "type": "long" },
"bytes_read": { "type": "long" },
"captured_request_cookie": <%= keyword_default %>,
"captured_response_cookie": <%= keyword_default %>,
"termination_state": <%= keyword_default %>,
"actconn": { "type": "long" },
"feconn": { "type": "long" },
"beconn": { "type": "long" },
"srvconn": { "type": "long" },
"retries": { "type": "long" },
"srv_queue": { "type": "long" },
"backend_queue": { "type": "long" },
"captured_request_headers": <%= keyword_default %>,
"captured_response_headers": <%= keyword_default %>,
"http_request": <%= keyword_default %>,
"http_request_verb": <%= keyword_default %>
}
}
}
}
}