Dubravko Penezić
07/13/2025, 6:03 PMPat
07/14/2025, 8:51 AMDubravko Penezić
07/14/2025, 7:45 PMservice:
flush: 1
log_level: debug
daemon: off
http_server: off
hot_reload: on
parsers_file: /etc/fluent-bit/parser.yaml
pipeline:
inputs:
- name: syslog
tag: f-ticks-tcp
parser: radni-1
listen: 0.0.0.0
port: 518
buffer_chunk_size: 64000
buffer_max_size: 900000
receive_buffer_size: 900000
mode: tcp
transport:
frame_type: octet-counted
- name: syslog
tag: f-ticks-tls
parser: radni-1
listen: 0.0.0.0
port: 519
buffer_chunk_size: 64000
buffer_max_size: 900000
receive_buffer_size: 900000
mode: tcp
transport:
tls: on
tls.verify: on
tls.ca_file: /etc/fluent-bit/certs/ca_syslog.crt
tls.cert_file: /etc/fluent-bit/certs/server.crt
tls.key_file: /etc/fluent-bit/certs/server.key
outputs:
- name: stdout
match: '*'
format: json_linesPat
07/15/2025, 9:21 AMtransport key is not something that exists as far as I'm aware - TLS is all configured like so: https://docs.fluentbit.io/manual/administration/transport-security
It's a bit non-standard YAML in that . is a valid key namePat
07/15/2025, 9:22 AMDubravko Penezić
07/15/2025, 3:34 PMPat
07/15/2025, 3:44 PM$ docker run --rm -it -v $PWD/fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml:ro fluent/fluent-bit:4.0.4 -c /fluent-bit/etc/fluent-bit.yaml
Fluent Bit v4.0.4
* Copyright (C) 2015-2025 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io
______ _ _ ______ _ _ ___ _____
| ___| | | | | ___ (_) | / || _ |
| |_ | |_ _ ___ _ __ | |_ | |_/ /_| |_ __ __/ /| || |/' |
| _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / / /_| || /| |
| | | | |_| | __/ | | | |_ | |_/ / | |_ \ V /\___ |\ |_/ /
\_| |_|\__,_|\___|_| |_|\__| \____/|_|\__| \_/ |_(_)___/
[2025/07/15 15:42:15] [error] could not open parser configuration file, aborting.
[2025/07/15 15:42:15] [error] [config] could not configure property 'transport' on input plugin with section name 'syslog'
[2025/07/15 15:42:15] [error] configuration file contains errors, aborting.
The transport key is not a valid key.
Also tls.cert_file should be tls.crt_file .Pat
07/15/2025, 3:44 PMpipeline:
inputs:
- name: syslog
tag: f-ticks-tls
parser: radni-1
listen: 0.0.0.0
port: 519
buffer_chunk_size: 64000
buffer_max_size: 900000
receive_buffer_size: 900000
mode: tcp
tls: on
tls.verify: on
tls.ca_file: /etc/fluent-bit/certs/ca_syslog.crt
tls.crt_file: /etc/fluent-bit/certs/server.crt
tls.key_file: /etc/fluent-bit/certs/server.key
Can't say it's working but it's not invalid.Pat
07/15/2025, 3:45 PM$ docker run --rm -it fluent/fluent-bit:4.0.4 -i syslog --help
...
NETWORK_TLS
tls Enable or disable TLS/SSL support
> default: off, type: boolean
tls.verify Force certificate validation
> default: on, type: boolean
tls.debug Set TLS debug verbosity level. It accept the following
values: 0 (No debug), 1 (Error), 2 (State change), 3
(Informational) and 4 Verbose
> default: 1, type: integer
...Pat
07/15/2025, 3:46 PMif I don't use transport: group config parser wouldn't like to start service because it not recognize tls. inside of input syslog blockWhat's this
config parser you mention?Dubravko Penezić
07/15/2025, 4:03 PM[2025/07/15 16:00:37] [error] [config] syslog: unknown configuration property 'tls.cert_file'. The following properties are allowed: mode, path, unix_perm, buffer_chunk_size, buffer_max_size, parser, receive_buffer_size, raw_message_key, and source_address_key.Dubravko Penezić
07/15/2025, 4:04 PMtls.cert vs tls.crtPat
07/15/2025, 4:05 PM-i <plugin name> --helpDubravko Penezić
07/15/2025, 4:06 PMDubravko Penezić
07/15/2025, 4:07 PMDubravko Penezić
07/15/2025, 4:07 PMPat
07/15/2025, 4:09 PM$ docker run --rm -it -v $PWD/fluent-bit.yaml:/fluent-bit/etc/fluent-bit.yaml:ro fluent/fluent-bit:4.0.2 -c /fluent-bit/etc/fluent-bit.yaml
...
[2025/07/15 16:07:21] [error] [config] could not configure property 'transport' on input plugin with section name 'syslog'
However, glad you got it sortedDubravko Penezić
07/15/2025, 4:09 PMDubravko Penezić
07/15/2025, 4:13 PM