Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in_syslog: add examples for yaml configuration #1335

Merged
merged 1 commit into from
Apr 13, 2024
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
69 changes: 68 additions & 1 deletion pipeline/inputs/syslog.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ By default the service will create and listen for Syslog messages on the unix so

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

{% tabs %}
{% tab title="fluent-bit.conf" %}
```python
[SERVICE]
Flush 1
Expand All @@ -59,6 +61,27 @@ In your main configuration file append the following _Input_ & _Output_ sections
Name stdout
Match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
service:
flush: 1
log_level: info
parsers_file: parsers.conf
pipeline:
inputs:
- name: syslog
path: /tmp/in_syslog
buffer_chunk_size: 32000
buffer_max_size: 64000
receive_buffer_size: 512000
outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% endtabs %}

### Testing

Expand Down Expand Up @@ -90,8 +113,10 @@ The following content aims to provide configuration examples for different use c

#### Fluent Bit Configuration

Put the following content in your fluent-bit.conf file:
Put the following content in your configuration file:

{% tabs %}
{% tab title="fluent-bit.conf" %}
```text
[SERVICE]
Flush 1
Expand All @@ -108,6 +133,26 @@ Put the following content in your fluent-bit.conf file:
Name stdout
Match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
service:
flush: 1
parsers_file: parsers.conf
pipeline:
inputs:
- name: syslog
parser: syslog-rfc3164
listen: 0.0.0.0
port: 5140
mode: tcp
outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% endtabs %}

then start Fluent Bit.

Expand All @@ -131,6 +176,8 @@ $ sudo service rsyslog restart

Put the following content in your fluent-bit.conf file:

{% tabs %}
{% tab title="fluent-bit.conf" %}
```text
[SERVICE]
Flush 1
Expand All @@ -147,6 +194,26 @@ Put the following content in your fluent-bit.conf file:
Name stdout
Match *
```
{% endtab %}

{% tab title="fluent-bit.yaml" %}
```yaml
service:
flush: 1
parsers_file: parsers.conf
pipeline:
inputs:
- name: syslog
parser: syslog-rfc3164
path: /tmp/fluent-bit.sock
mode: unix_udp
unix_perm: 0644
outputs:
- name: stdout
match: '*'
```
{% endtab %}
{% endtabs %}

then start Fluent Bit.

Expand Down