Skip to content

Commit ca9faa1

Browse files
authored
in_systemd: add examples for yaml configuration (#1330)
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent d45b739 commit ca9faa1

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

pipeline/inputs/systemd.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ $ fluent-bit -i systemd \
4040

4141
In your main configuration file append the following _Input_ & _Output_ sections:
4242

43+
{% tabs %}
44+
{% tab title="fluent-bit.conf" %}
4345
```text
4446
[SERVICE]
4547
Flush 1
@@ -55,4 +57,22 @@ In your main configuration file append the following _Input_ & _Output_ sections
5557
Name stdout
5658
Match *
5759
```
58-
60+
{% endtab %}
61+
62+
{% tab title="fluent-bit.yaml" %}
63+
```yaml
64+
service:
65+
flush: 1
66+
log_level: info
67+
parsers_file: parsers.conf
68+
pipeline:
69+
inputs:
70+
- name: systemd
71+
tag: host.*
72+
systemd_filter: _SYSTEMD_UNIT=docker.service
73+
outputs:
74+
- name: stdout
75+
match: '*'
76+
```
77+
{% endtab %}
78+
{% endtabs %}

0 commit comments

Comments
 (0)