Skip to content

farnasirim/fluent-bit-plugin-filter-typecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fluent Bit Typecast Filter

Fluent-bit filter plugin to change data types in records.

Build

$ cd build/
$ cmake -DFLB_SOURCE=/path/to/fluent-bit -DPLUGIN_NAME=filter_typecast ../
$ make

Use

Reference the create shared object as a plugin in your plugins file (e.g. plugins.conf):

[PLUGINS]
    Path /path/to/.so

And refer to the above file under service configurations:

[SERVICE]
    Plugins_File /path/to/plugins.conf

Use the typecast filter in your configurations and run fluent-bit:

[INPUT]
    Name cpu
    tag tag_cpu

[INPUT]
    Name mem
    tag tag_mem

[FILTER]
    Name typecast
    Match tag_cpu
    # If Mem.total field exists in the record, try to cast it to string
    primitive_cast Mem.total string


[OUTPUT]
    Name stdout
    match *

License

Apache Version 2.0

About

typecast plugin for fluent-bit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published