-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlog_errors.yaml
44 lines (39 loc) · 1022 Bytes
/
log_errors.yaml
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
# Run this file with the test-server, then specify the PORT as a parameter to this try or run script.
vars:
port: "${PORT}"
load_pattern:
- linear:
from: 10%
to: 100%
over: 15s
loggers:
http_errors:
select:
timestamp: epoch("ms")
request: request["start-line"]
method: request.method
url: request.url.href
requestHeaders: request.headers_all # headers_all includes duplicate headers
response: response["start-line"]
status: response.status
responseHeaders: response.headers_all
responseBody: response.body
stats: stats
where: response.status >= 400 && response.status != 503
limit: 1000
to: stdout
pretty: false
test:
to: stdout
endpoints:
- method: GET
url: http://localhost:${port}
headers:
Accept-Language: en-us
Content-Type: application/json
Authorization: Bearer test-token
body: '{"test":true}'
peak_load: 1hps
logs:
test:
select: response.status