@@ -12,7 +12,6 @@ The plugin supports the following configuration parameters:
1212| Parser | Specify the parser name to interpret the field. Multiple _ Parser_ entries are allowed \( one per line\) . | |
1313| Preserve\_ Key | Keep original ` Key_Name ` field in the parsed result. If false, the field will be removed. | False |
1414| Reserve\_ Data | Keep all other original fields in the parsed result. If false, all other original fields will be removed. | False |
15- | Nest\_ Under | Specify the name of the field to nest parsed records under. | |
1615
1716## Getting Started
1817
@@ -157,42 +156,3 @@ Fluent Bit v2.1.1
157156[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"}]
158157[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"}]
159158```
160-
161- ### Nest parsed fields
162-
163- Instead of expanding parsed fields at the root of the object,
164- you can nest them under a new field defined by ` Nest_Under ` :
165-
166- ``` python copy
167- [SERVICE ]
168- Parsers_File / fluent- bit/ etc/ parsers.conf
169-
170- [INPUT ]
171- Name Dummy
172- Dummy {" log" :" error: my error" ," element" :" {\" a\" :\" b\" ,\" c\" :{\" x\" :\" y\" }}" }
173- Tag dummy.data
174-
175- [FILTER ]
176- Name parser
177- Match dummy.*
178- Parser json
179- Key_Name element
180- Nest_Under parsed
181-
182- [OUTPUT ]
183- Name stdout
184- Match *
185- ```
186-
187- This configuration results in the following output:
188-
189- ``` text
190- $ fluent-bit -c dummy.conf
191- Fluent Bit v2.1.1
192- * Copyright (C) 2015-2022 The Fluent Bit Authors
193- ...
194- ...
195- [0] dummy.data: [[1736759501.208000317, {}], {"parsed"=>{"a"=>"b", "c"=>{"x"=>"y"}}}]
196- [0] dummy.data: [[1736759502.207935361, {}], {"parsed"=>{"a"=>"b", "c"=>{"x"=>"y"}}}]
197- [0] dummy.data: [[1736759503.207765898, {}], {"parsed"=>{"a"=>"b", "c"=>{"x"=>"y"}}}]
198- ```
0 commit comments