Skip to content

Instantly share code, notes, and snippets.

@jszwedko
Last active September 1, 2022 13:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jszwedko/975a7c9a278af7491ecca89f4141ca90 to your computer and use it in GitHub Desktop.
Save jszwedko/975a7c9a278af7491ecca89f4141ca90 to your computer and use it in GitHub Desktop.
Vector configuration errors
[sources.source0]
type = "stdin"
[sinks.sink0]
type = "statsd"
inputs = ["source0"]
# 2022-08-25T19:17:49.988433Z ERROR vector::cli: Configuration error. error=missing field `mode` for key `sinks.sink0`
[sources.source0]
type = "stdin"
[sinks.sink0]
type = "statsd"
inputs = ["source0"]
mode = "bad"
# 2022-08-25T19:18:40.084094Z ERROR vector::cli: Configuration error. error=unknown variant `bad`, expected one of `tcp`, `udp`, `unix` for key `sinks.sink0`
[sources.source0]
type = "stdin"
[sinks.sink0]
type = "statsd"
inputs = ["source0"]
mode = "udp"
address = "127.0.0.1:1212"
# 2022-08-25T19:19:17.523871Z ERROR vector::cli: Configuration error. error=Data type mismatch between source0 (Log) and sink0 (Metric)
[sources.source0]
type = "stdin"
[sinks.sink0]
type = "statsd"
inputs = ["bad"]
mode = "udp"
address = "127.0.0.1:1212"
# 2022-08-25T19:19:34.598354Z ERROR vector::cli: Configuration error. error=Input "bad" for sink "sink0" doesn't match any components.
[sources.source0]
type = "stdin"
# 2022-08-25T19:20:00.466873Z ERROR vector::cli: Configuration error. error=No sinks defined in the config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment