添加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
我在做什么错了?