Skip to content

Vector supports multiple config files #20123

Answered by tbenade
Joshualy94 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Joshualy94 ,
Multi file configuration is well supported and we successfully deploy the namespaced multifile functionality using VECTOR_CONFIG_DIR setting.

You don't need follow the namespaced practice you can simply use multiple files. https://vector.dev/docs/reference/configuration/#multiple-files.

You haven't mentioned how you are running/starting vector. If you are simply running it as an application you can invoke vector with --config-dir <your-config-directory>

If using systemd and unit files you will need set the environment variable VECTOR_CONFIG_DIR in the vector process by supplying a unit EnvironmentFile prior to starting the process.

# file: vector.default

VECTOR_CONFIG_DI…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Joshualy94
Comment options

@polarathene
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Joshualy94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: feature A value-adding code addition that introduce new functionality.
4 participants
Converted from issue

This discussion was converted from issue #20122 on March 18, 2024 13:05.