-
I have several System environment variables defined on a Windows host. Can an environment variable be defined for host_key? My source is:
Is something like the following possible? host_key = "HOST_ALIAS_ENV_VAR" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @marketier ! Yes, you should be able to use environment variables to configure the (see https://vector.dev/docs/reference/configuration/#environment-variables) Try: host_key = "${HOST_ALIAS_ENV_VAR}" |
Beta Was this translation helpful? Give feedback.
-
Hi @neuronull , Thanks for your reply and pointing me to the doc. This prompted me to check out add_fields transform and I now have it working. For anyone interested, I am sourcing logs on Windows and forwarding to New Relic. This is part of a pipeline in Octopus Deploy. #{Variable_Name} denotes variable substitution in Octopus Deploy.
I like Vector. There's an elegance to it. |
Beta Was this translation helpful? Give feedback.
Hi @marketier !
Yes, you should be able to use environment variables to configure the
host_key
.(see https://vector.dev/docs/reference/configuration/#environment-variables)
Try: