Skip to content

Commit

Permalink
[Filebeat] httpjson update docs (#30739)
Browse files Browse the repository at this point in the history
- update documentation for accessing last_response.url.params
  in httpjson input.

(cherry picked from commit 8a60ca9)
  • Loading branch information
leehinman authored and mergify-bot committed Mar 10, 2022
1 parent e4957b6 commit 8d019e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- elasticsearch: fix duplicate ingest when using a common appender configuration {issue}30428[30428] {pull}30440[30440]
- Fix ECS version string in threatintel to be consistent with other modules and add event.timezone. {issue}30499[30499] {pull}30570[30570]
- Add default paths value to MySQL Enterprise module to prevent issues with pipeline installations {pull}30598[30598]
- Fix compatibility with ECS by renaming `source` log key to `source_file` {issue}30667[30667]
- Fix add_kubernetes_metadata matcher: support rotated logs when `resource_type: pod` {pull}30720[30720]
- Update documentation for accessing `last_response.url.params` in httpjson input. {pull}30739[30739]

*Filebeat*


*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/docs/inputs/input-httpjson.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ The `httpjson` input keeps a runtime state between requests. This state can be a
The state has the following elements:

- `last_response.url.value`: The full URL with params and fragments from the last request with a successful response.
- `last_response.url.params`: A map containing the params from the URL in `last_response.url.value`.
- `last_response.url.params`: A https://pkg.go.dev/net/url#Values[`url.Values`] of the params from the URL in `last_response.url.value`. Can be queried with the https://pkg.go.dev/net/url#Values.Get[`Get`] function.
- `last_response.header`: A map containing the headers from the last successful response.
- `last_response.body`: A map containing the parsed JSON body from the last successful response. This is the response as it comes from the remote server.
- `last_response.page`: A number indicating the page number of the last response.
Expand Down

0 comments on commit 8d019e7

Please sign in to comment.