Skip to content

Commit

Permalink
Fix incorrect indentation in YAML examples (#37185) (#37188)
Browse files Browse the repository at this point in the history
Copy-pasting these examples would lead to `step: null`.

(cherry picked from commit 0b22871)

Co-authored-by: Denis <denis.rechkunov@elastic.co>
  • Loading branch information
mergify[bot] and rdner authored Nov 23, 2023
1 parent 05eb197 commit d1a2c9d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions x-pack/filebeat/docs/inputs/input-httpjson.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1145,14 +1145,14 @@ filebeat.inputs:
chain:
# second call
- step:
request.url: https://example.com/services/data/v1.0/$.records[:].id/export_ids
request.method: GET
replace: $.records[:].id
request.url: https://example.com/services/data/v1.0/$.records[:].id/export_ids
request.method: GET
replace: $.records[:].id
# third call
- step:
request.url: https://example.com/services/data/v1.0/export_ids/$.file_name/info
request.method: GET
replace: $.file_name
request.url: https://example.com/services/data/v1.0/export_ids/$.file_name/info
request.method: GET
replace: $.file_name
----

Example:
Expand Down Expand Up @@ -1257,9 +1257,9 @@ filebeat.inputs:
chain:
# second call
- step:
request.url: https://example.com/services/data/v1.0/$.exportId/files
request.method: GET
replace_with: '$.exportId,.first_response.body.exportId'
request.url: https://example.com/services/data/v1.0/$.exportId/files
request.method: GET
replace_with: '$.exportId,.first_response.body.exportId'
----

Example:
Expand Down

0 comments on commit d1a2c9d

Please sign in to comment.