Description
When starting Vector to use the generate
command, users may be surprised to see their stdout is polluted and not valid TOML.
hoverbear@OBSIDIAN:/git/timberio/vector$ cargo run -- generate stdin//console
Finished dev [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/vector generate stdin//console`
Jul 09 16:06:21.268 INFO vector: Log level "info" is enabled.
data_dir = "/var/lib/vector/"
[sources.source0]
max_length = 102400
type = "stdin"
[sinks.sink0]
healthcheck = true
inputs = ["source0"]
type = "console"
[sinks.sink0.buffer]
type = "memory"
max_events = 500
when_full = "block"
hoverbear@OBSIDIAN:/git/timberio/vector$ cargo run -- generate stdin//console > test.toml
Finished dev [unoptimized + debuginfo] target(s) in 0.26s
Running `target/debug/vector generate stdin//console`
hoverbear@OBSIDIAN:/git/timberio/vector$ cat test.toml
Jul 09 16:07:31.098 INFO vector: Log level "info" is enabled.
data_dir = "/var/lib/vector/"
[sources.source0]
max_length = 102400
type = "stdin"
[sinks.sink0]
healthcheck = true
inputs = ["source0"]
type = "console"
[sinks.sink0.buffer]
type = "memory"
max_events = 500
when_full = "block"
This issue requests that vector generate stdin//console > test.toml
works again as expected.
Todo:
- Add test