@@ -7,7 +7,7 @@ To use it, specify the plugin name as the input. For example:
7
7
fluent-bit -i stdin -o stdout
8
8
```
9
9
10
- If the ` stdin ` stream is closed (` end-of-file ` ), the plugin instruct Fluent Bit to exit with success (` 0 ` ) after flushing any pending output.
10
+ If the ` stdin ` stream is closed (` end-of-file ` ), the plugin instructs Fluent Bit to exit with success (` 0 ` ) after flushing any pending output.
11
11
12
12
## Configuration parameters
13
13
@@ -47,8 +47,7 @@ The Fluent Bit event timestamp will be set from the input record if the two-elem
47
47
48
48
### JSON input
49
49
50
- To demonstrate how the plugin works, you can use a ` bash ` script that generates
51
- messages and writes them to [ Fluent Bit] ( http://fluentbit.io ) .
50
+ To demonstrate how the plugin works, you can use a ` bash ` script that generates messages and writes them to [ Fluent Bit] ( http://fluentbit.io ) .
52
51
53
52
1 . Write the following content in a file named ` test.sh ` :
54
53
@@ -117,8 +116,7 @@ Which returns the following:
117
116
118
117
### JSON input with metadata
119
118
120
- Additional metadata is supported in Fluent Bit v2.1.0 and later by replacing the timestamp
121
- with a two-element object. For example:
119
+ Additional metadata is supported in Fluent Bit v2.1.0 and later by replacing the timestamp with a two-element object. For example:
122
120
123
121
``` bash
124
122
#! /bin/sh
@@ -165,7 +163,7 @@ On older Fluent Bit versions records in this format will be discarded. If the lo
165
163
166
164
To capture inputs in other formats, specify a parser configuration for the ` stdin ` plugin.
167
165
168
- For example, if you want to read raw messages line byline and forward them you could use a ` parser.conf ` that captures the whole message line:
166
+ For example, if you want to read raw messages line by line and forward them, you could use a ` parser.conf ` that captures the whole message line:
169
167
170
168
``` text
171
169
[PARSER]
@@ -175,7 +173,7 @@ For example, if you want to read raw messages line byline and forward them you c
175
173
regex ^(?<message>.*)
176
174
```
177
175
178
- YOu can then use that in the ` parser ` clause of the ` stdin ` plugin in the ` fluent-bit.conf ` :
176
+ You can then use that in the ` parser ` clause of the ` stdin ` plugin in the ` fluent-bit.conf ` file :
179
177
180
178
{% tabs %}
181
179
@@ -211,7 +209,6 @@ pipeline:
211
209
{% endtabs %}
212
210
213
211
Fluent Bit will now read each line and emit a single message for each input
214
- line, using the following command:
215
212
216
213
``` shell
217
214
seq 1 5 | /opt/fluent-bit/bin/fluent-bit -c fluent-bit.conf -R parser.conf -q
0 commit comments