JSON and YAML config formats are now supported
We’ve added support for JSON and YAML config formats.
To ensure Vector fits into existing workflows, like Kubernetes, we’ve added support for JSON and YAML config formats in addition to TOML. TOML will continue to be our default format, but users are welcome to use JSON and YAML as they see fit.
YAML is the preferred language in the K8s ecosystem, and to ensure Vector does not feel awkward in the Kubernetes platform we now support YAML for our pipeline definitions.
Use Vector as you normally work, but pass it
json config files:
vector --config /etc/vector/vector.json
Vector will infer the format from the extension. This is especially useful when passing multiple config files via globs:
vector --config /etc/vector/*
Additionally, we’ve provided format specific flags for edge cases:
vector --config-json /etc/vector/vector.json
Head over to the configuration docs for more info.