forked from sonian/elasticsearch-jetty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elasticsearch.yml
90 lines (85 loc) · 3.91 KB
/
elasticsearch.yml
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
86
87
88
89
90
cluster.name: jetty-test
# Switch to jetty transport without filter
#http.type: com.sonian.elasticsearch.http.jetty.JettyHttpServerTransportModule
# Switch to jetty transport with filter
http.type: com.sonian.elasticsearch.http.filter.FilterHttpServerTransportModule
# Filter setup
sonian.elasticsearch.http.filter:
# Filter should use netty instead of jetty (default)
#transport_type": "netty"
http_filter_chain: ["logging", "jsonlog", "timeout"]
http_filter:
# Simulated timeout filter - remove in production
timeout.type: com.sonian.elasticsearch.http.filter.timeout.TimeoutFilterHttpServerAdapter
# Request logging filter
logging:
logger: com.sonian.elasticsearch.http.filter.logging
format: text
type: com.sonian.elasticsearch.http.filter.logging.LoggingFilterHttpServerAdapter
level: INFO
log_body: false
loggers:
stats:
path: ["/_cluster/health", "/_cluster/nodes", "/_cluster/state", "/_cluster/nodes/{node}/stats"]
method: GET
level: TRACE
searches:
path: ["/_search", "/_search/scroll", "/_search/scroll/{scroll_id}", "/{index}/_search",
"/{index}/{type}/_search", "/{index}/{type}/{id}/_mlt"]
method: GET, POST
log_body: true
count:
path: ["/_count", "/{index}/_count", "/{index}/{type}/_count"]
method: GET, POST
log_body: true
mget:
path: ["/_mget", "/{index}/_mget", "/{index}/{type}/_mget"]
method: GET, POST
log_body: true
index-changes:
path: ["/_aliases", "/{index}/_mapping", "/{index}/{type}/_mapping", "/_template/{name}",
"/{index}/_settings"]
method: PUT, POST
log_body: true
cluster-changes:
path: ["/_cluster/settings", "/_settings"]
method: PUT, POST
log_body: true
jsonlog:
logger: com.sonian.elasticsearch.http.filter.jsonlog
format: json
type: com.sonian.elasticsearch.http.filter.logging.LoggingFilterHttpServerAdapter
level: INFO
log_body: false
loggers:
stats:
path: ["/_cluster/health", "/_cluster/nodes", "/_cluster/state", "/_cluster/nodes/{node}/stats"]
method: GET
level: TRACE
searches:
path: ["/_search", "/_search/scroll", "/_search/scroll/{scroll_id}", "/{index}/_search",
"/{index}/{type}/_search", "/{index}/{type}/{id}/_mlt"]
method: GET, POST
log_body: true
count:
path: ["/_count", "/{index}/_count", "/{index}/{type}/_count"]
method: GET, POST
log_body: true
mget:
path: ["/_mget", "/{index}/_mget", "/{index}/{type}/_mget"]
method: GET, POST
log_body: true
index-changes:
path: ["/_aliases", "/{index}/_mapping", "/{index}/{type}/_mapping", "/_template/{name}",
"/{index}/_settings"]
method: PUT, POST
log_body: true
cluster-changes:
path: ["/_cluster/settings", "/_settings"]
method: PUT, POST
log_body: true
# Jetty Settings
sonian.elasticsearch.http.jetty:
ssl_port: 9443
keystore_password: "OBF:1nc01vuz1w8f1w1c1rbu1rac1w261w9b1vub1ndq"
config: jetty.xml,jetty-hash-auth.xml,jetty-restrict-writes.xml,jetty-gzip.xml