Install, configure, and manage Fluent-bit log shipper. This module is heavily inspired from https://github.com/soylent/konstantin-fluentd/
- Installs td-agent package
- Generates configuration file td-agent-bit.conf
- Manages td-agent-bit service
Install and start the service.
class { 'fluent-bit': }
Defining Fluentd resources in Hiera.
fluent_bit::configs:
'my_cpu':
service: 'INPUT'
name: 'cpu'
tag: 'tag1'
# optional custom parsers configuration
fluent_bit::parsers:
parser_01:
service: 'PARSER'
name: 'parser_01'
format: 'regex'
regex: '^(?<time>[^ ]*) (?<message>[^$]*)$'
time_key: 'time'
time_format: '%Y-%m-%dT%H:%M:%S,%L'
Tested on Ubuntu 16.04
Bug reports and pull requests are welcome!