Skip to content

Commit b8a85de

Browse files
authored
Fix example in pipeline/filters/parser.md (fluent#1134)
Signed-off-by: Pieter E Smit <github@vigor.nz>
1 parent 9e1abcd commit b8a85de

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pipeline/filters/parser.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,19 +138,21 @@ If you enable `Reserved_Data` and `Preserve_Key`, the original key field will be
138138
Parser dummy_test
139139
Reserve_Data On
140140
Preserve_Key On
141+
142+
[OUTPUT]
143+
Name stdout
144+
Match *
141145
```
142146

143147
This will produce the following output:
144148

145149
```text
146150
$ fluent-bit -c dummy.conf
147-
Fluent-Bit v0.12.0
148-
Copyright (C) Treasure Data
149-
150-
[2017/07/06 22:33:12] [ info] [engine] started
151-
[0] dummy.data: [1499347993.001371317, {"data":"100 0.5 true This is example", "INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example"}]
152-
[1] dummy.data: [1499347994.001303118, {"data":"100 0.5 true This is example", "INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example"}]
153-
[2] dummy.data: [1499347995.001296133, {"data":"100 0.5 true This is example", "INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example"}]
154-
[3] dummy.data: [1499347996.001320284, {"data":"100 0.5 true This is example", "INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example"}]
151+
Fluent Bit v2.1.1
152+
* Copyright (C) 2015-2022 The Fluent Bit Authors
153+
...
154+
...
155+
[0] dummy.data: [[1687122778.299116136, {}], {"INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example", "data"=>"100 0.5 true This is example", "key1"=>"value1", "key2"=>"value2"}]
156+
[0] dummy.data: [[1687122779.296906553, {}], {"INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example", "data"=>"100 0.5 true This is example", "key1"=>"value1", "key2"=>"value2"}]
157+
[0] dummy.data: [[1687122780.297475803, {}], {"INT"=>"100", "FLOAT"=>"0.5", "BOOL"=>"true", "STRING"=>"This is example", "data"=>"100 0.5 true This is example", "key1"=>"value1", "key2"=>"value2"}]
155158
```
156-

0 commit comments

Comments
 (0)