Skip to content

Commit 2fe9db9

Browse files
authored
Adding YAML examples to local testing logging pipeline docs. Fixes #1766. (#1767)
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent cbee81e commit 2fe9db9

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

local-testing/logging-pipeline.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,27 @@ You can test logging pipelines locally to observe how they handles log messages.
44

55
## Create a configuration file
66

7-
Start by creating a [Fluent Bit configuration file](../administration/configuring-fluent-bit/classic-mode/configuration-file) to test.
7+
Start by creating one of the corresponding Fluent Bit configuration files to start testing.
8+
9+
10+
{% tabs %}
11+
{% tab title="fluent-bit.yaml" %}
12+
13+
```yaml
14+
pipeline:
15+
inputs:
16+
- name: dummy
17+
dummy: '{"top": {".dotted": "value"}}'
18+
19+
outputs:
20+
- name: es
21+
host: elasticsearch
22+
replace_dots: on
23+
```
24+
25+
{% endtab %}
26+
{% tab title="fluent-bit.conf" %}
827
9-
{% code title="fluent-bit.conf" %}
1028
```text
1129
[INPUT]
1230
Name dummy
@@ -17,7 +35,9 @@ Start by creating a [Fluent Bit configuration file](../administration/configurin
1735
Host elasticsearch
1836
Replace_Dots On
1937
```
20-
{% endcode %}
38+
39+
{% endtab %}
40+
{% endtabs %}
2141

2242
## Use Docker Compose
2343

@@ -59,4 +79,4 @@ To reset your index, run the following command:
5979
6080
```bash
6181
curl -X DELETE "localhost:9200/fluent-bit?pretty"
62-
```
82+
```

0 commit comments

Comments
 (0)