-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new test with flattened result json.
- Loading branch information
Tethik
committed
Aug 31, 2018
1 parent
ae7af09
commit 8f99bb2
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Jul 30 09:03:52 localhost haproxy[32450]: 1.2.3.4:38862 [30/Jul/2018:09:03:52.726] incoming~ docs_microservice/docs 0/0/1/0/2 304 168 - - ---- 6/6/0/0/0 0/0 {docs.example.internal||} {|||} "GET /component---src-pages-index-js-4b15624544f97cf0bb8f.js HTTP/1.1" |
41 changes: 41 additions & 0 deletions
41
filebeat/module/haproxy/http/test/haproxy.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"haproxy.server_name": "docs", | ||
"haproxy.time_client_req": 0, | ||
"haproxy.geoip.continent_name": "North America", | ||
"haproxy.geoip.city_name": "Mukilteo", | ||
"haproxy.geoip.country_iso_code": "US", | ||
"haproxy.geoip.region_name": "Washington", | ||
"haproxy.geoip.location.lon": -122.3042, | ||
"haproxy.geoip.location.lat": 47.913, | ||
"haproxy.termination_state": "----", | ||
"haproxy.time_queue": 0, | ||
"haproxy.pid": 32450, | ||
"haproxy.client_port": 38862, | ||
"haproxy.backend_queue": 0, | ||
"haproxy.process_name": "haproxy", | ||
"haproxy.backend_name": "docs_microservice", | ||
"haproxy.http.request.raw_request_line": "GET /component---src-pages-index-js-4b15624544f97cf0bb8f.js HTTP/1.1", | ||
"haproxy.http.request.captured_cookie": "-", | ||
"haproxy.http.request.captured_headers": [ | ||
"docs.example.internal" | ||
], | ||
"haproxy.http.response.captured_cookie": "-", | ||
"haproxy.http.response.captured_headers": [], | ||
"haproxy.http.response.status_code": 304, | ||
"haproxy.http.response.bytes_read": 168, | ||
"haproxy.frontend_name": "incoming~", | ||
"haproxy.time_duration": 2, | ||
"haproxy.time_server_response": 0, | ||
"haproxy.server_queue": 0, | ||
"haproxy.client_ip": "1.2.3.4", | ||
"haproxy.time_backend_connect": 1, | ||
"haproxy.connections.server": 0, | ||
"haproxy.connections.retries": 0, | ||
"haproxy.connections.active": 6, | ||
"haproxy.connections.backend": 0, | ||
"haproxy.connections.frontend": 6, | ||
"@timestamp": "2018-07-30T09:03:52.726Z", | ||
"message": "Jul 30 09:03:52 localhost haproxy[32450]: 1.2.3.4:38862 [30/Jul/2018:09:03:52.726] incoming~ docs_microservice/docs 0/0/1/0/2 304 168 - - ---- 6/6/0/0/0 0/0 {docs.example.internal||} {|||} \"GET /component---src-pages-index-js-4b15624544f97cf0bb8f.js HTTP/1.1\"" | ||
} | ||
] |