Support template syntax in hostname and tags field for LogDNA sink #3777
Labels
have: should
We should have this feature, but is not required. It is medium priority.
meta: good first issue
Anything that is good for new contributors.
type: enhancement
A value-adding code change that enhances its existing functionality.
I'm currently trying to set up vector to ship logs from the docker source to the LogDNA sink. The LogDNA sink has a field
hostname
that it will use to determine the "source" of the log event. I tried using the template syntax to set the hostname based on thecontainer_name
field set by the docker source, but it seems this field does not accept the template syntax.Here's a simple example of what I'm trying to set up
Without the ability to set this dynamically, it seems to me that there is no reliable way to indicate to LogDNA what instance this log is coming from.
The same goes for tags. I wanted to apply some tags that that take in some of the fields from the docker log output.
Would it be possible to support the use of templates in these fields?
The text was updated successfully, but these errors were encountered: