Skip to content

Commit

Permalink
Fix metricbeat http module not parsing headers correctly #8564 (#8585)
Browse files Browse the repository at this point in the history
Fix typo in headers naming on HTTP Metricbeat module
  • Loading branch information
sayden committed Oct 23, 2018
1 parent 96e484c commit ace94f0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ https://github.com/elastic/beats/compare/v6.4.0...master[Check the HEAD diff]
- Avoid mapping issues in kubernetes module. {pull}8487[8487]
- Fix issue that would prevent kafka module to find a proper broker when port is not set {pull}8613[8613]
- Fix range colors in multiple visualizations. {issue}8633[8633] {pull}8634[8634]
- Fix incorrect header parsing on http metricbeat module {issue}8564[8564] {pull}8585[8585]

*Packetbeat*

Expand Down
5 changes: 4 additions & 1 deletion libbeat/tests/system/beat/beat.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def start(self):
stderr=subprocess.STDOUT,
bufsize=0,
)
# If a "No such file or directory" error points you here, run
# "make metricbeat.test" on metricbeat folder
return self.proc

def kill(self):
Expand Down Expand Up @@ -501,7 +503,8 @@ def extract_fields(doc_list, name):

global yaml_cache

# TODO: Make fields_doc path more generic to work with beat-generator
# TODO: Make fields_doc path more generic to work with beat-generator. If it can't find file
# "fields.yml" you should run "make update" on metricbeat folder
with open(fields_doc, "r") as f:
path = os.path.abspath(os.path.dirname(__file__) + "../../../../fields.yml")
if not os.path.isfile(path):
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8633,7 +8633,7 @@ HTTP request information
*`http.request.header`*::
*`http.request.headers`*::
+
--
type: object
Expand All @@ -8660,7 +8660,7 @@ HTTP response information
*`http.response.header`*::
*`http.response.headers`*::
+
--
type: object
Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/http/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
description: >
HTTP request information
fields:
- name: header
- name: headers
type: object
description: >
The HTTP headers sent
Expand All @@ -27,7 +27,7 @@
description: >
HTTP response information
fields:
- name: header
- name: headers
type: object
description: >
The HTTP headers received
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/http/fields.go

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

0 comments on commit ace94f0

Please sign in to comment.