The recipe fluentbit::default
installs Fluent Bit.
You can select whether to install the binary packages provided by Treasure Data (TD Agent bit) or compile Fluent Bit from source.
override['fluentbit']['install_mode'] = 'package' # the default
override['fluentbit']['install_mode'] = 'source' # build from source code
You can add custom configuration with the fluentbit_conf
helper:
fluentbit_conf 'example' do
content <<~CONF
[INPUT]
Name cpu
Tag cpu
[OUTPUT]
Name stdout
Match *
CONF
end
You can add custom parsers by setting type :parser
:
fluentbit_conf 'foo' do
type :parser
content <<~CONF
[PARSER]
Name foo
Format regex
Regex ^(?<foo>[^ ]*) [^ ]*$
CONF
end
A simple generic recipe is available to set up forwarding to another Fluent Bit or Fluentd host.
Run this locally: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 3650
Give it a password. CN can be left blank.
MIT