sources: journald: type: journald transforms: tag_journald: type: remap inputs: - journald source: | .source = "journald" .unit = ._SYSTEMD_UNIT .process = ._COMM .priority = .PRIORITY .host = "{{ docker_loki_client_config.hostname }}" sinks: loki: type: loki inputs: - tag_journald endpoint: "{{ docker_loki_client_config.loki.address }}" healthcheck: enabled: false encoding: codec: json labels: {% raw %} host: "{{ .host }}" source: "{{ .source }}" unit: "{{ .unit }}" process: "{{ .process }}" priority: "{{ .priority }}" {% endraw %}