vectordotdev/vector

Configuration error. error=Sink "loki": invalid format

Open

#10,980 创建于 2022年1月22日

在 GitHub 查看
 (1 评论) (4 反应) (0 负责人)Rust (21,837 star) (2,126 fork)batch import
good first issuesink: loki

描述

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Current Vector Version

vector 0.19.0 (x86_64-unknown-linux-gnu da60b55 2021-12-28)

Use-cases

[sources.generate_syslog]
type = "demo_logs"
format = "syslog"

[sinks.loki]
type = "loki"
inputs = ["generate_syslog"]
labels.host="localhost"
endpoint = "something-with-a-typo-that-is-hard-to-notice"
encoding.codec = "logfmt"

output nothing more useful than

2022-01-22T01:13:22.313577Z ERROR vector::topology: Configuration error. error=Sink "loki": invalid format

Proposal

A better error message that actually says what's wrong. Like "invalid format: endpoint" or something like that.

贡献者指南