Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fluent Bit Golang package to build plugins

License

NotificationsYou must be signed in to change notification settings

fluent/fluent-bit-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Requirements

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.

Usage

Fluent Bit Go packages are exposed on this repository:

github.com/fluent/fluent-bit-go

Creating Output Plugin

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:

Creating Input Plugin

When creating a Fluent Bit Input plugin, theinput package can be used as follows:

import"github.com/fluent/fluent-bit-go/input"

Config key constraint

Some config keys are used/overwritten by Fluent Bit and can't be used by a custom plugin, they are:

PropertyInputOutput
aliasXX
hostXX
ipv6XX
listenX
log_levelXX
log_suppress_intervalX
matchX
match_regexX
mem_buf_limitXX
portXX
retry_limitX
routableXX
storage.pause_on_chunks_overlimitXX
storage.total_limit_sizeX
storage.typeXX
tagXX
threadedXX
tlsXX
tls.ca_fileXX
tls.ca_pathXX
tls.crt_fileXX
tls.debugXX
tls.key_fileXX
tls.key_passwdXX
tls.verifyXX
tls.vhostXX
workersX

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

Contact

Feel free to join us on our Slack channel, Mailing List, IRC or Twitter:

Authors

Fluent Bit Go is made and sponsored byTreasure Data amongothercontributors.

About

Fluent Bit Golang package to build plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors15

Languages


[8]ページ先頭

©2009-2026 Movatter.jp