Skip to content

Commit

Permalink
Fix YAML indentation in parsers examples (#29663) (#29893)
Browse files Browse the repository at this point in the history
See discussion on https://discuss.elastic.co/t/filebeat-filestream-input-parsers-multiline-fails/290543/9.

(cherry picked from commit 9e0dad7)

Co-authored-by: Steve Mokris <smokris@softpixel.com>
  • Loading branch information
mergify[bot] and smokris committed Jan 18, 2022
1 parent 616db13 commit 5fdc4bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions filebeat/docs/inputs/input-filestream-reader-options.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ The multiline message is stored under the key `msg`.
...
parsers:
- ndjson:
keys_under_root: true
message_key: msg
keys_under_root: true
message_key: msg
- multiline:
type: counter
lines_count: 3
type: counter
lines_count: 3
----

See the available parser settings in detail below.
Expand Down Expand Up @@ -197,9 +197,9 @@ Example configuration:
[source,yaml]
----
- ndjson:
keys_under_root: true
add_error_key: true
message_key: log
keys_under_root: true
add_error_key: true
message_key: log
----

*`keys_under_root`*:: By default, the decoded JSON is placed under a "json" key
Expand Down Expand Up @@ -256,5 +256,5 @@ all containers under the default Kubernetes logs path:
- "/var/log/containers/*.log"
parsers:
- container:
stream: stdout
stream: stdout
----

0 comments on commit 5fdc4bb

Please sign in to comment.