Skip to content

Commit

Permalink
feat: switch to json-file log driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-karan committed May 31, 2023
1 parent cabca37 commit 87697c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/nomad-clients/scripts/setup_client.tftpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 87697c1

Please sign in to comment.