Skip to content

Commit

Permalink
add new test with flattened result json.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tethik committed Aug 31, 2018
1 parent ae7af09 commit 8f99bb2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions filebeat/module/haproxy/http/test/haproxy.log
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 filebeat/module/haproxy/http/test/haproxy.log-expected.json
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\""
}
]

0 comments on commit 8f99bb2

Please sign in to comment.