Use template variable within a log query in Datadog

737 views Asked by At

In my LogStream widget I've the following log query

host:"/aws-glue/app/r/jobs/job_name"

enter image description here

the r letter should be variable based on the environment, thus I introduced a template variable $env_tag enter image description here

host:"/aws-glue/app/$env_tag.value/jobs/job_name"

But it doesn't work ! how can we use template variable inside the query ? Thanks

0

There are 0 answers