Skip to content

TomlinfreeGit/fluentbit-out-pgsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fluentbit-out-pgsql

build as .so

go build -buildmode=c-shared -o out_pgsql.so main.go

ldd the .so

ldd out_pgsql.so

define plugins files in main configuration file

[SERVICE]
    plugins_file /fbtest/plugins.conf

[INPUT]
    Name dummy

[OUTPUT]
    Name stdout

content of plugin file

[PLUGINS]
    Path /fbtest/out_pgsql.so

apply new output plugin in main configuration file

[SERVICE]
    Flush        5
    Daemon       Off
    Log_Level    info
    plugins_file /fbtest/plugins.conf

[INPUT]
    Name  cpu
    tag   cpu.local

[OUTPUT]
    name            stdout
    match           *

[OUTPUT]
    name            out_pgsql
    pghost          127.0.0.1
    pgport          5432
    user            postgres
    password        xxx
    match           *
    database        xxx
    table           xxx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published