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
31 changes: 31 additions & 0 deletions pipeline/inputs/tail.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,26 @@ As stated in the [Multiline Parser documentation](../../administration/configuri

If you are running Fluent Bit to process logs coming from containers like Docker or CRI, you can use the new built-in modes for such purposes. This will help to reassembly multiline messages originally split by Docker or CRI:

{% tabs %}
{% tab title="fluent-bit.conf" %}
```text
[INPUT]
name tail
path /var/log/containers/*.log
multiline.parser docker, cri
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
pipeline:
inputs:
- tail:
path: /var/log/containers/*.log
multiline.parser: docker, cri
```
{% endtab %}
{% endtabs %}

The two options separated by a comma means multi-format: try `docker` and `cri` multiline formats.

Expand Down Expand Up @@ -113,6 +127,8 @@ $ fluent-bit -i tail -p path=/var/log/syslog -o stdout

In your main configuration file append the following _Input_ & _Output_ sections. An example visualization can be found [here](https://link.calyptia.com/vg2)

{% tabs %}
{% tab title="fluent-bit.conf" %}
```python
[INPUT]
Name tail
Expand All @@ -122,6 +138,21 @@ In your main configuration file append the following _Input_ & _Output_ sections
Name stdout
Match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
pipeline:
inputs:
- tail:
path: /var/log/syslog

outputs:
- stdout:
match: *
```
{% endtab %}
{% endtabs %}

![](../../.gitbook/assets/image%20%286%29.png)

Expand Down