Skip to content

Commit d45b739

Browse files
authored
in_stdin: add examples for yaml configuration (#1329)
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 2ad2502 commit d45b739

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

pipeline/inputs/standard-input.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ could use a `parser.conf` that captures the whole message line:
152152

153153
then use that in the `parser` clause of the stdin plugin in the `fluent-bit.conf`:
154154

155+
{% tabs %}
156+
{% tab title="fluent-bit.conf" %}
155157
```
156158
[INPUT]
157159
Name stdin
@@ -162,6 +164,21 @@ then use that in the `parser` clause of the stdin plugin in the `fluent-bit.conf
162164
Name stdout
163165
Match *
164166
```
167+
{% endtab %}
168+
169+
{% tab title="fluent-bit.yaml" %}
170+
```yaml
171+
pipeline:
172+
inputs:
173+
- name: stdin
174+
tag: stdin
175+
parser: stringify_message
176+
outputs:
177+
- name: stdout
178+
match: '*'
179+
```
180+
{% endtab %}
181+
{% endtabs %}
165182
166183
Fluent Bit will now read each line and emit a single message for each input
167184
line:

0 commit comments

Comments
 (0)