Hi all… for my cloudwatch logging links, the template is not filling the {{ .hostname }}, any other like logName, podName, etc is ok.
Any ideas?
t
thankful-minister-83577
10/19/2023, 11:56 PM
not sure i remember all the details of the templating… can you give some examples of hostname?
thankful-minister-83577
10/19/2023, 11:56 PM
are you looking for the instance a task ran on?
r
rhythmic-lizard-91902
10/20/2023, 1:18 AM
Yes.. is for a task, here is an example of hostname: *ip-10-0-6*3-57 and part of the url generated by flyte is not rendering the hostname (escape problem maybe?): log-events/{{%20.hostname%20}}.var.log.containers
t
thankful-minister-83577
10/20/2023, 12:47 PM
i don’t believe that that’s in the list of templating variables. where did you get that from?
r
rhythmic-lizard-91902
10/23/2023, 2:55 PM
That’s how the url is being rendered for the hostname section… this is part of the template: `log-events/{{
{{
}} .hostname {{
}}
}}.var.log.containers.{{
{{
}} .podName {{
}}
}}`
.podName, namespace, containername and containerId are rendered with the correct values