Skip to main content

Fluent-Bit Synchronization Database

Settings:

Settings

[INPUT]
    Name              tail
    Path              /var/external_logs/*.log
    Tag               local.*
    Refresh_Interval  5
    DB                /fluent-bit/logs/fluent-bit.db
    DB.Sync           Normal
    Parser            json
    Rotate_Wait       30

Database DDL

-- in_tail_files definition
CREATE TABLE in_tail_files (
  id INTEGER PRIMARY KEY, name TEXT NOT NULL, 
  offset INTEGER, inode INTEGER, created INTEGER, 
  rotated INTEGER DEFAULT 0
);