Skip to content

Commit 1d52661

Browse files
esmerelcnorris-cs
andauthored
Apply suggestions from code review
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: Lynette Miles <[email protected]>
1 parent 125740b commit 1d52661

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pipeline/inputs/standard-input.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ To use it, specify the plugin name as the input. For example:
77
fluent-bit -i stdin -o stdout
88
```
99

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.
1111

1212
## Configuration parameters
1313

@@ -47,8 +47,7 @@ The Fluent Bit event timestamp will be set from the input record if the two-elem
4747

4848
### JSON input
4949

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).
5251

5352
1. Write the following content in a file named `test.sh`:
5453

@@ -117,8 +116,7 @@ Which returns the following:
117116

118117
### JSON input with metadata
119118

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:
122120

123121
```bash
124122
#!/bin/sh
@@ -165,7 +163,7 @@ On older Fluent Bit versions records in this format will be discarded. If the lo
165163

166164
To capture inputs in other formats, specify a parser configuration for the `stdin` plugin.
167165

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:
169167

170168
```text
171169
[PARSER]
@@ -175,7 +173,7 @@ For example, if you want to read raw messages line byline and forward them you c
175173
regex ^(?<message>.*)
176174
```
177175

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:
179177

180178
{% tabs %}
181179

@@ -211,7 +209,6 @@ pipeline:
211209
{% endtabs %}
212210

213211
Fluent Bit will now read each line and emit a single message for each input
214-
line, using the following command:
215212

216213
```shell
217214
seq 1 5 | /opt/fluent-bit/bin/fluent-bit -c fluent-bit.conf -R parser.conf -q

0 commit comments

Comments
 (0)