Fluent-Bit Path_Key 在默认“日志”结构中

时间:2021-03-11 06:27:46

标签: fluent-bit

我正在尝试为默认的“日志”结构提供 Path_Key 值。我希望它与我的消息处于同一水平。我是 Fluent-Bit 新手,不知道如何正确处理 $ 符号。 在我的配置文件下面:

[INPUT]
    Name    tail
    Path    /data/AirflowLogs/logs/*.log
    Tag     airflow
    Path_Key    log_id

[FILTER]
    Name record_modifier
    Record log_id ${log_id}
    Match *
    
[OUTPUT]
    Name    stdout
    Match   *

[OUTPUT]
    Name    forward
    Match   *
    Host    hostname.ad.trw.com

提前致谢!

0 个答案:

没有答案
相关问题