使用Fluentbit标签时Grafana Loki缺少日志

时间:2020-07-08 08:14:15

标签: grafana fluent-bit loki

添加Tag my_log后,Grafana中不会显示任何日志。我什至看不到{job =“ remote-log”}标签:

[INPUT]
    Name        forward
    Listen      0.0.0.0
    Port        24224
    Tag         my_log
[Output]
    Name loki
    Match my_log
    Url ${LOKI_URL}
    RemoveKeys source
    Labels {job="remote-log"}
    LabelKeys container_name
    BatchWait 1
    BatchSize 1001024
    LineFormat json
    LogLevel info

工作配置:

[INPUT]
    Name        forward
    Listen      0.0.0.0
    Port        24224
[Output]
    Name loki
    Match *
    Url ${LOKI_URL}
    RemoveKeys source
    Labels {job="remote-log"}
    LabelKeys container_name
    BatchWait 1
    BatchSize 1001024
    LineFormat json
    LogLevel info

我在做什么错了?

0 个答案:

没有答案