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

Fields changed:

- response.captured_headers
- request.captured_headers
- raw_request_line
- mode
  • Loading branch information
ruflin committed Jan 29, 2019
1 parent ded12e4 commit 4c01621
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 @@ -57,6 +57,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]

*Heartbeat*

Expand Down
8 changes: 4 additions & 4 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4682,7 +4682,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 @@ -4889,7 +4889,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 @@ -4922,7 +4922,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 @@ -4932,7 +4932,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 4c01621

Please sign in to comment.