You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pipeline/parsers/decoders.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Decoders
2
2
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.
4
4
5
5
Consider the following message generated by the application:
6
6
@@ -14,11 +14,11 @@ The Docker log message encapsulates something like this:
14
14
{"log":"{\"status\": \"up and running\"}\r\n","stream":"stdout","time":"2018-03-09T01:01:44.851160855Z"}
15
15
```
16
16
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.
18
18
19
19
## Get started
20
20
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:
22
22
23
23
-`Decode_Field`: If the content can be decoded in a structured message, append
24
24
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
82
82
Actions are affected by some restrictions:
83
83
84
84
-`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.
0 commit comments