Validate a Configuration

To ensure seamless operation and minimize downtime, it's essential to validate your configuration YAML files before loading them into the collector. The logscale-collector config validate command allows you to do just that.

To validate a configuration YAML file, run the following command:

shell
logscale-collector config validate --cfg <path to config>

Where path to config is the path to your configuration YAML file.

The command returns an exit code indicating the validation result:

Result Description
0 The configuration file is valid, and the collector can load it successfully.
Non-zero An error was detected, and the collector cannot start with this configuration.