Skip to content

Commit 81f1321

Browse files
authored
Merge pull request #3 from zerodha/logging
feat: switch to json-file log driver
2 parents cabca37 + 87697c1 commit 81f1321

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/nomad-clients/scripts/setup_client.tftpl.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ plugin "docker" {
169169
extra_labels = ["job_name", "job_id", "task_group_name", "task_name", "namespace", "node_name", "node_id"]
170170
171171
logging {
172-
type = "journald"
172+
type = "json-file"
173173
config {
174-
tag = "hashicluster_nomad"
175-
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"
174+
max-size = "10m"
175+
max-file = 10
176176
}
177177
}
178178
}

0 commit comments

Comments
 (0)