Skip to content

Commit 190db40

Browse files
authored
Fixes to shell usage and standardized on Yaml configuration. Fixes #1794. (#1795)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 3894a34 commit 190db40

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

pipeline/inputs/dummy.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ You can run the plugin from the command line or through the configuration file:
2828

2929
Run the plugin from the command line using the following command:
3030

31-
```bash
32-
fluent-bit -i dummy -o stdout
31+
```shell
32+
$ fluent-bit -i dummy -o stdout
3333
```
3434

3535
which returns results like the following:
@@ -46,13 +46,26 @@ Fluent Bit v2.x.x
4646

4747
### Configuration file
4848

49-
In your main configuration file append the following `Input` and `Output` sections:
50-
49+
In your main configuration file append the following:
5150

5251
{% tabs %}
52+
{% tab title="fluent-bit.yaml" %}
53+
54+
```yaml
55+
pipeline:
56+
inputs:
57+
- name: dummy
58+
dummy: '{"message": "custom dummy"}'
59+
60+
outputs:
61+
- name: stdout
62+
match: '*'
63+
```
64+
65+
{% endtab %}
5366
{% tab title="fluent-bit.conf" %}
5467
55-
```python
68+
```text
5669
[INPUT]
5770
Name dummy
5871
Dummy {"message": "custom dummy"}
@@ -63,18 +76,4 @@ In your main configuration file append the following `Input` and `Output` sectio
6376
```
6477

6578
{% endtab %}
66-
67-
{% tab title="fluent-bit.yaml" %}
68-
69-
```yaml
70-
pipeline:
71-
inputs:
72-
- name: dummy
73-
dummy: '{"message": "custom dummy"}'
74-
outputs:
75-
- name: stdout
76-
match: '*'
77-
```
78-
79-
{% endtab %}
80-
{% endtabs %}
79+
{% endtabs %}

0 commit comments

Comments
 (0)