Skip to content

Commit 6ae1cf5

Browse files
Apply suggestions from code review
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: Alexa Kreizinger <[email protected]>
1 parent 876b40f commit 6ae1cf5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pipeline/parsers/decoders.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Decoders
22

3-
There are cases where the log messages that you want to parse contain encoded data. A typical use case can be found in containerized environments with Docker. Docker logs its data in JSON format, which uses escaped strings.
3+
There are cases where the log messages you want to parse contain encoded data. A typical use case can be found in containerized environments with Docker. Docker logs its data in JSON format, which uses escaped strings.
44

55
Consider the following message generated by the application:
66

@@ -14,11 +14,11 @@ The Docker log message encapsulates something like this:
1414
{"log":"{\"status\": \"up and running\"}\r\n","stream":"stdout","time":"2018-03-09T01:01:44.851160855Z"}
1515
```
1616

17-
The original message is handled as an escaped string. Fluent Bit wants to use the original structured message and not a string.
17+
The original message is handled as an escaped string. Fluent Bit will use the original structured message, and not a string.
1818

1919
## Get started
2020

21-
Decoders are a built-in feature of parsers in Fluent Bit. Each parser definition can optionally set one or more decoders. There are two types of decoders:
21+
Decoders are a built-in feature of parsers in Fluent Bit. Each parser definition can optionally set one or more decoders. Select from one of these decoder types:
2222

2323
- `Decode_Field`: If the content can be decoded in a structured message, append
2424
the structured message (keys and values) to the original log message.
@@ -82,7 +82,7 @@ If a decoder fails to decode the field, or if you want to try another decoder, y
8282
Actions are affected by some restrictions:
8383

8484
- `Decode_Field_As`: If successful, another decoder of the same type and the same field can be applied only if the data continues being an unstructured message (raw text).
85-
- `Decode_Field`: If successful, can only be applied once for the same field. `Decode_Field` is intended to decode a structured message.
85+
- `Decode_Field`: If successful, can be applied only once for the same field. `Decode_Field` is intended to decode a structured message.
8686

8787
### Examples
8888

0 commit comments

Comments
 (0)