Skip to content

Commit

Permalink
[Filebeat] Change type from haproxy.log fileset fields from text to k…
Browse files Browse the repository at this point in the history
…eyword (#10397)

Fields changed:

- response.captured_headers
- request.captured_headers
- raw_request_line
- mode
  • Loading branch information
ruflin authored Jan 29, 2019
1 parent b96936e commit f6dbd52
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
including `http.response.elapsed_time` (ECS). {pull}10188[10188], {pull}10274[10274]
- Rename multiple fields to `http.response.body.bytes`, from modules "apache", "iis",
"kibana", "nginx" and "traefik", including `http.response.content_length` (ECS). {pull}10188[10188]
- Change type from haproxy.log fileset fields from text to keyword: response.captured_headers, request.captured_headers, `raw_request_line`, `mode`. {pull}10397[10397]
- Change type of field backend_url and frontend_name in traefik.access metricset to type keyword. {pull}10401[10401]
- Ingesting Elasticsearch audit logs is only supported with Elasticsearch 6.5.0 and above {pull}10352[10352]
- Migrate Elasticsearch audit logs fields to ECS {pull}10352[10352]
Expand Down
8 changes: 4 additions & 4 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4694,7 +4694,7 @@ Condition the session was in when the session ended.
*`haproxy.mode`*::
+
--
type: text
type: keyword
mode that the frontend is operating (TCP or HTTP)
Expand Down Expand Up @@ -4901,7 +4901,7 @@ Optional "name=value" entry indicating that the client had this cookie in the re
*`haproxy.http.response.captured_headers`*::
+
--
type: text
type: keyword
List of headers captured in the response due to the presence of the "capture response header" statement in the frontend.
Expand Down Expand Up @@ -4934,7 +4934,7 @@ Optional "name=value" entry indicating that the server has returned a cookie wit
*`haproxy.http.request.captured_headers`*::
+
--
type: text
type: keyword
List of headers captured in the request due to the presence of the "capture request header" statement in the frontend.
Expand All @@ -4944,7 +4944,7 @@ List of headers captured in the request due to the presence of the "capture requ
*`haproxy.http.request.raw_request_line`*::
+
--
type: text
type: keyword
Complete HTTP request line, including the method, request and HTTP version string.
Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/haproxy/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
description: Condition the session was in when the session ended.

- name: mode
type: text
type: keyword
description: mode that the frontend is operating (TCP or HTTP)

- name: connections
Expand Down
2 changes: 1 addition & 1 deletion filebeat/module/haproxy/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions filebeat/module/haproxy/log/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- name: captured_headers
description: >
List of headers captured in the response due to the presence of the "capture response header" statement in the frontend.
type: text
type: keyword

- name: status_code
type: alias
Expand All @@ -32,11 +32,11 @@
- name: captured_headers
description: >
List of headers captured in the request due to the presence of the "capture request header" statement in the frontend.
type: text
type: keyword

- name: raw_request_line
description: Complete HTTP request line, including the method, request and HTTP version string.
type: text
type: keyword

- name: time_wait_without_data_ms
description: Total time in milliseconds spent waiting for the server to send a full HTTP response, not counting data.
Expand Down

0 comments on commit f6dbd52

Please sign in to comment.