Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions local-testing/logging-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,27 @@ You can test logging pipelines locally to observe how they handles log messages.

## Create a configuration file

Start by creating a [Fluent Bit configuration file](../administration/configuring-fluent-bit/classic-mode/configuration-file) to test.
Start by creating one of the corresponding Fluent Bit configuration files to start testing.


{% tabs %}
{% tab title="fluent-bit.yaml" %}

```yaml
pipeline:
inputs:
- name: dummy
dummy: '{"top": {".dotted": "value"}}'

outputs:
- name: es
host: elasticsearch
replace_dots: on
```

{% endtab %}
{% tab title="fluent-bit.conf" %}

{% code title="fluent-bit.conf" %}
```text
[INPUT]
Name dummy
Expand All @@ -17,7 +35,9 @@ Start by creating a [Fluent Bit configuration file](../administration/configurin
Host elasticsearch
Replace_Dots On
```
{% endcode %}

{% endtab %}
{% endtabs %}

## Use Docker Compose

Expand Down Expand Up @@ -59,4 +79,4 @@ To reset your index, run the following command:

```bash
curl -X DELETE "localhost:9200/fluent-bit?pretty"
```
```