Skip to content

Commit 19a39a0

Browse files
Merge pull request #1863 from fluent/alexakreizinger/sc-136278/update-fluent-bit-docs-pipeline-parsers-json
2 parents 3df1e25 + 7d230b3 commit 19a39a0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pipeline/parsers/json.md

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

3-
The JSON parser is the simplest option: if the original log source is a JSON map string, it will take its structure and convert it directly to the internal binary representation.
3+
The _JSON_ parser transforms JSON logs by converting them to internal binary representations.
44

5-
A simple configuration that can be found in the default parsers configuration file, is the entry to parse Docker log files \(when the tail input plugin is used\):
5+
For example, the default parsers configuration file includes a parser for parsing Docker logs (when the Tail input plugin is used):
66

77
```python
88
[PARSER]
@@ -12,7 +12,7 @@ A simple configuration that can be found in the default parsers configuration fi
1212
Time_Format %Y-%m-%dT%H:%M:%S %z
1313
```
1414

15-
The following log entry is a valid content for the parser defined above:
15+
The following log entry is valid content for the previously defined parser:
1616

1717
```javascript
1818
{"key1": 12345, "key2": "abc", "time": "2006-07-28T13:22:04Z"}
@@ -24,5 +24,4 @@ After processing, its internal representation will be:
2424
[1154103724, {"key1"=>12345, "key2"=>"abc"}]
2525
```
2626

27-
The time has been converted to Unix timestamp \(UTC\) and the map reduced to each component of the original message.
28-
27+
The time was converted to a UTC timestamp and the map was reduced to each component of the original message.

0 commit comments

Comments
 (0)