Vector supports multiple config files #20123
-
A note for the community
Use CasesHi, I wonder if I understand it correctly, but I am using vector with all components in one config file (vector.yaml at /etc/vector), which makes it too large to handle a large system. Is there a way we can store the structure in several config files and make the structure more clear? Thanks! Attempted SolutionsNo response ProposalNo response ReferencesNo response VersionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes: https://vector.dev/docs/reference/configuration/#multiple-files. |
Beta Was this translation helpful? Give feedback.
-
Hi @Joshualy94 , 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 If using systemd and unit files you will need set the environment variable
Then put the above here Hope that helps. |
Beta Was this translation helpful? Give feedback.
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 unitEnvironmentFile
prior to starting the process.# file: vector.default