Function used by the vector config
subcommand for outputting a normalized configuration.
The purpose of this func is to combine user configuration after processing all paths,
Pipelines expansions, etc. The JSON result of this serialization can itself be used as a config,
which also makes it useful for version control or treating as a singular unit of configuration.
Often we want to call outputs just to retrieve the OutputId’s without needing
the schema definitions.
Loads Log Schema from configurations and sets global schema. Once this is
done, configurations can be correctly loaded using configured log schema
defaults.
Loads the telemetry options from configurations and sets the global options.
Once this is done, configurations can be correctly loaded using configured
log schema defaults.
Result<interpolated config, errors>
Uses ConfigBuilderLoader
to process ConfigPaths
, deserializing to a ConfigBuilder
.
Loads a configuration from paths. Handle secret replacement and if a provider is present
in the builder, the config is used as bootstrapping for a remote source. Otherwise,
provider instantiation is skipped.
Uses SourceLoader
to process ConfigPaths
, deserializing to a toml SourceMap
.
Components should use global LogSchema
returned by this function. The
returned value can differ from LogSchema::default()
which is unchanging.
Merge the paths coming from different cli flags with different formats into
a unified list of paths with formats.
Expand a list of paths (potentially containing glob patterns) into real
config paths, replacing it with the default paths when empty.
Returns the telemetry configuration options.