From 2bde7629029811dacbe7da33bb9a73a07480fdd3 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 10 Nov 2022 10:19:51 -0800 Subject: [PATCH] Use journald for Nomad Docker logging so they can be ingested into Loki --- ansible_playbooks/setup-cluster.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible_playbooks/setup-cluster.yml b/ansible_playbooks/setup-cluster.yml index 9131069..7d0497d 100644 --- a/ansible_playbooks/setup-cluster.yml +++ b/ansible_playbooks/setup-cluster.yml @@ -314,6 +314,9 @@ volumes: enabled: true selinuxlabel: "z" + # Send logs to journald so we can scrape them for Loki + logging: + type: journald extra_labels: - "job_name" - "job_id"