2022-05-19 00:29:43 +08:00
|
|
|
# Uses a Go template to create a new tag
|
|
|
|
|
[[processors.template]]
|
2023-05-18 05:55:30 +08:00
|
|
|
## Go template used to create the tag name of the output. In order to
|
|
|
|
|
## ease TOML escaping requirements, you should use single quotes around
|
|
|
|
|
## the template string.
|
2022-05-19 00:29:43 +08:00
|
|
|
tag = "topic"
|
|
|
|
|
|
2023-05-18 05:55:30 +08:00
|
|
|
## Go template used to create the tag value of the output. In order to
|
|
|
|
|
## ease TOML escaping requirements, you should use single quotes around
|
|
|
|
|
## the template string.
|
2022-05-19 00:29:43 +08:00
|
|
|
template = '{{ .Tag "hostname" }}.{{ .Tag "level" }}'
|