From 87697c16000b58880a4aa7a7283bdf80b79d529f Mon Sep 17 00:00:00 2001 From: Karan Sharma Date: Wed, 31 May 2023 10:55:36 +0530 Subject: [PATCH] feat: switch to json-file log driver --- modules/nomad-clients/scripts/setup_client.tftpl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nomad-clients/scripts/setup_client.tftpl.sh b/modules/nomad-clients/scripts/setup_client.tftpl.sh index 79dca33..7c041d4 100644 --- a/modules/nomad-clients/scripts/setup_client.tftpl.sh +++ b/modules/nomad-clients/scripts/setup_client.tftpl.sh @@ -169,10 +169,10 @@ plugin "docker" { extra_labels = ["job_name", "job_id", "task_group_name", "task_name", "namespace", "node_name", "node_id"] logging { - type = "journald" + type = "json-file" config { - tag = "hashicluster_nomad" - labels = "com.hashicorp.nomad.alloc_id,com.hashicorp.nomad.job_id,com.hashicorp.nomad.job_name,com.hashicorp.nomad.namespace,com.hashicorp.nomad.node_id,com.hashicorp.nomad.node_name,com.hashicorp.nomad.task_group_name,com.hashicorp.nomad.task_name" + max-size = "10m" + max-file = 10 } } }