##
##  fluentbit.conf -- Fluent Bit Configuration
##

[SERVICE]
    Daemon         On
    Buffer_Path    @l_prefix@/var/fluentbit/db/
    Buffer_Workers 4
    Flush          4
    Log_Level      info
    HTTP_Server    Off
    HTTP_Listen    127.0.0.1
    HTTP_Port      2020

#   local CPU
[INPUT]
    Name           cpu
    Tag            cpu.local
    Interval_Sec   1

#   local RAM
[INPUT]
    Name           mem
    Tag            mem.usage
    Interval_Sec   1

#   local process
[INPUT]
    Name           proc
    Tag            process.fluent-bit
    Proc_Name      fluent-bit
    Alert          false
    Mem            true
    Interval_Sec   1
    Interval_NSec  0

#   local disk
[INPUT]
    Name           disk
    Tag            disk.all
    Interval_Sec   1
    Interval_NSec  0

#   remote Fluent protocol
#[INPUT]
#    Name           forward
#    Listen         127.0.0.1
#    Port           24224
#    Buffer         512000

#   remote MQTT-over-TCP protocol
#[INPUT]
#    Name           mqtt
#    Tag            mqtt.local
#    Listen         127.0.0.1
#    Port           1883

#   remote Fluent protocol
#[OUTPUT]
#    Name           forward
#    Host           127.0.0.1
#    Port           24224

#   local file
[OUTPUT]
    Name           file
    Match          *
    Path           @l_prefix@/var/fluentbit/log/fluentbit.json

