- Notifications
You must be signed in to change notification settings - Fork58
Fluent Bit Golang package to build plugins
License
fluent/fluent-bit-go
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains Go packages that allows to createFluent Bit plugins. At the moment it only supports the creation ofOutput andInput plugins.
The code of this package for output plugin is intended to be used withFluent Bit v1.4 branch or higher.
The code of this package for input plugin is intended to be used withFluent Bit v1.9 branch or higher.
Fluent Bit Go packages are exposed on this repository:
github.com/fluent/fluent-bit-go
When creating a Fluent Bit Output plugin, theoutput package can be used as follows:
import"github.com/fluent/fluent-bit-go/output"
For a more practical example please refer to theout_multiinstance plugin implementation located at:
When creating a Fluent Bit Input plugin, theinput package can be used as follows:
import"github.com/fluent/fluent-bit-go/input"
Some config keys are used/overwritten by Fluent Bit and can't be used by a custom plugin, they are:
| Property | Input | Output |
|---|---|---|
alias | X | X |
host | X | X |
ipv6 | X | X |
listen | X | |
log_level | X | X |
log_suppress_interval | X | |
match | X | |
match_regex | X | |
mem_buf_limit | X | X |
port | X | X |
retry_limit | X | |
routable | X | X |
storage.pause_on_chunks_overlimit | X | X |
storage.total_limit_size | X | |
storage.type | X | X |
tag | X | X |
threaded | X | X |
tls | X | X |
tls.ca_file | X | X |
tls.ca_path | X | X |
tls.crt_file | X | X |
tls.debug | X | X |
tls.key_file | X | X |
tls.key_passwd | X | X |
tls.verify | X | X |
tls.vhost | X | X |
workers | X |
This implies that if your plugin depends on property likelisten you can use on output plugin but not on input plugin,host don't work on both, rather than this custom key likeaddress work on both.
[OUTPUT] Name my_output_plugin Listen something# work Host# don't work Address# work[INPUT] Name my_input_plugin Listen something#don't work Host localhost# don't work Address# work
Feel free to join us on our Slack channel, Mailing List, IRC or Twitter:
- Slack:http://slack.fluentd.org (#fluent-bit channel)
- Mailing List:https://groups.google.com/forum/#!forum/fluent-bit
- IRC: irc.freenode.net #fluent-bit
- Twitter:http://twitter.com/fluentbit
Fluent Bit Go is made and sponsored byTreasure Data amongothercontributors.
About
Fluent Bit Golang package to build plugins
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors15
Uh oh!
There was an error while loading.Please reload this page.