0

流利位似乎在 ignore_Older 配置参数中无效,当我们重新启动系统时,它总是发送旧日志。

谁能建议我做错了什么?

下面是我的fluent bit启动Log

我正在使用 DB 文件来保存偏移量和解析器,并忽略 Fluent Bit v1.7.1 以下的旧配置

* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2022/02/04 05:58:38] [ info] [engine] started (pid=2685)
[2022/02/04 05:58:38] [ info] [storage] version=1.1.0, initializing...
[2022/02/04 05:58:38] [ info] [storage] in-memory
[2022/02/04 05:58:38] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2022/02/04 05:58:38] [ info] [sp] stream processor started


[PARSER]
  Name        custom_parser
  Format      json
  Time_Key    timestamp
  Time_Format %Y-%m-%dT%H:%M:%S.%L%z
  Time_Keep    On

Input configuration 

[INPUT]
    Name tail
    Tag  logs_custom
    Read_from_Head false
    Skip_Long_Lines true
    Parser custom_parser
    Ignore_Older 60s
    # Interval Sec
    # ====
    # Read interval (sec) Default: 1
    path somepath
    DB somepath/file_lite.db
    DB.Sync Normal
    # Interval_Sec 1
4

0 回答 0