Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infertux/chef-fluentbit
Chef cookbook for Fluent Bit
https://github.com/infertux/chef-fluentbit
chef chef-cookbook fluent-bit fluentd logging
Last synced: about 2 months ago
JSON representation
Chef cookbook for Fluent Bit
- Host: GitHub
- URL: https://github.com/infertux/chef-fluentbit
- Owner: infertux
- License: mit
- Created: 2018-01-02T10:40:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-09T07:41:19.000Z (over 3 years ago)
- Last Synced: 2024-04-16T03:30:05.871Z (8 months ago)
- Topics: chef, chef-cookbook, fluent-bit, fluentd, logging
- Language: Ruby
- Homepage: http://fluentbit.io/
- Size: 40 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# fluentbit cookbook
[![Build Status](https://travis-ci.org/infertux/chef-fluentbit.svg?branch=master)](https://travis-ci.org/infertux/chef-fluentbit)
## Recipe `default`
The recipe `fluentbit::default` installs [Fluent Bit](http://fluentbit.io).
You can select whether to install the binary packages provided by Treasure Data (TD Agent bit) or compile Fluent Bit from source.
```ruby
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:
```ruby
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`:
```ruby
fluentbit_conf 'foo' do
type :parser
content <<~CONF
[PARSER]
Name foo
Format regex
Regex ^(?[^ ]*) [^ ]*$
CONF
end
```## Recipe `forward`
A simple generic recipe is available to set up forwarding to another Fluent Bit or Fluentd host.
### How to generate certificate for secure forwarding
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.## License
MIT