diff --git a/roles/vector/templates/vector.yaml.j2 b/roles/vector/templates/vector.yaml.j2 index 6dfc1ba..d99af0d 100644 --- a/roles/vector/templates/vector.yaml.j2 +++ b/roles/vector/templates/vector.yaml.j2 @@ -8,8 +8,6 @@ transforms: inputs: - journald source: | - .source = "journald" - .unit = ._SYSTEMD_UNIT .process = ._COMM .priority = .PRIORITY .host = "{{ vector_config.hostname }}" @@ -28,11 +26,11 @@ sinks: enabled: false encoding: codec: json + dangerously_allow_unconfined_template_resolution: true labels: {% raw %} + job: "journald" host: "{{ .host }}" - source: "{{ .source }}" - unit: "{{ .unit }}" process: "{{ .process }}" priority: "{{ .priority }}" {% endraw %}