Skip to content

Commit e28be11

Browse files
authored
pipeline: inputs: tail: add yaml samples (#750)
Signed-off-by: lecaros <[email protected]>
1 parent 255120f commit e28be11

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

pipeline/inputs/tail.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,26 @@ As stated in the [Multiline Parser documentation](../../administration/configuri
6565

6666
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:
6767

68+
{% tabs %}
69+
{% tab title="fluent-bit.conf" %}
6870
```text
6971
[INPUT]
7072
name tail
7173
path /var/log/containers/*.log
7274
multiline.parser docker, cri
7375
```
76+
{% endtab %}
77+
78+
{% tab title="fluent-bit.yaml" %}
79+
```yaml
80+
pipeline:
81+
inputs:
82+
- tail:
83+
path: /var/log/containers/*.log
84+
multiline.parser: docker, cri
85+
```
86+
{% endtab %}
87+
{% endtabs %}
7488
7589
The two options separated by a comma means multi-format: try `docker` and `cri` multiline formats.
7690

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

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

130+
{% tabs %}
131+
{% tab title="fluent-bit.conf" %}
116132
```python
117133
[INPUT]
118134
Name tail
@@ -122,6 +138,21 @@ In your main configuration file append the following _Input_ & _Output_ sections
122138
Name stdout
123139
Match *
124140
```
141+
{% endtab %}
142+
143+
{% tab title="fluent-bit.yaml" %}
144+
```yaml
145+
pipeline:
146+
inputs:
147+
- tail:
148+
path: /var/log/syslog
149+
150+
outputs:
151+
- stdout:
152+
match: *
153+
```
154+
{% endtab %}
155+
{% endtabs %}
125156

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

0 commit comments

Comments
 (0)