Vector provides a
--dry-run option to validate configuration only:
vector --config /etc/vector/vector.toml --dry-run
If validation fails, Vector will exit with a
78, and if validation succeeds Vector will exit with a
You'll notice in the second example above you can pass the
--require-healthy flag to also run health checks for all defined sinks.
This operation is useful to validate configuration changes before going live.
For clarify, Vector validates the following: