gifted-advantage-40886
07/31/2024, 6:47 PM<https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/aws/containerinsights/prod-next-datologyai-k8s/application;stream={{> .hostname }}.var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}-{{ .containerId }}.log
Based on the docs hostname should be something supported as a template flag https://docs.flyte.org/en/latest/user_guide/productionizing/configuring_logging_links_in_the_ui.html#configure-logging -- but in practice this is the URL that flyte generates:
{{ .hostname }}.var.log.containers.f391c9f2cc04b4f4eb42-n1-0-dn8-0-dn1-0-dn1-0_datology-development_f391c9f2cc04b4f4eb42-n1-0-dn8-0-dn1-0-dn1-0-e8b24149abd504d7b278f3c927d2748ea6df7f431e268c6e1024445f5e4bd763.log
gifted-advantage-40886
07/31/2024, 6:47 PMgifted-advantage-40886
07/31/2024, 7:02 PMthankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 8:16 PMlogging:
level: 5
plugins:
cloudwatch:
enabled: true
templateUri: |-
<https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/aws/containerinsights/prod-next-datologyai-k8s/application;stream={{> .hostname }}.var.log.containers.{{ .podName }}_{{ .namespace }}_{{ .containerName }}-{{ .containerId }}.log
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 8:19 PMthankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 9:04 PMthankful-minister-83577
templates
section?gifted-advantage-40886
07/31/2024, 9:06 PMgifted-advantage-40886
07/31/2024, 9:06 PMthankful-minister-83577
gifted-advantage-40886
07/31/2024, 9:07 PMtemplates:
- displayName: <name-to-show>
templateUris:
- "blah"
thankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 9:08 PMthankful-minister-83577
task_logs:
plugins:
logs:
templates:
- displayName: <name-to-show>
templateUris:
.....
gifted-advantage-40886
07/31/2024, 9:08 PMgifted-advantage-40886
07/31/2024, 9:08 PMgifted-advantage-40886
07/31/2024, 9:08 PMthankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 9:30 PMgifted-advantage-40886
07/31/2024, 9:30 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
plugins
key that is)thankful-minister-83577
task_logs:
is the helm values part, referenced here for examplegifted-advantage-40886
07/31/2024, 9:50 PMconfiguration:
logging:
level: 5
plugins:
cloudwatch:
enabled: true
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 10:01 PMgifted-advantage-40886
07/31/2024, 10:03 PMconfiguration.logging.level int 1
configuration.logging.plugins.cloudwatch.enabled bool false
configuration.logging.plugins.cloudwatch.templateUri string ""
gifted-advantage-40886
07/31/2024, 10:03 PMthankful-minister-83577
gifted-advantage-40886
07/31/2024, 10:04 PMthankful-minister-83577
thankful-minister-83577
flyte-binary.configuration.logging.plugins
will show up in the config map in the right place.gifted-advantage-40886
07/31/2024, 10:05 PMthankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 10:06 PMconfiguration:
logging:
level: 5
plugins:
templates:
- displayName: <name-to-show>
templateUris:
- "<https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logEventViewer:group=/flyte-production/kubernetes;stream=var.log.containers.{{.podName}}_{{.namespace}}_{{.containerName}}-{{.containerId}}.log>"
gifted-advantage-40886
07/31/2024, 10:07 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
logs: {{- include "flyte-binary.configuration.logging.plugins" . | nindent 8 }}
gifted-advantage-40886
07/31/2024, 10:21 PMthankful-minister-83577
thankful-minister-83577
gifted-advantage-40886
07/31/2024, 10:21 PMgifted-advantage-40886
07/31/2024, 10:21 PMgifted-advantage-40886
07/31/2024, 11:46 PMgifted-advantage-40886
07/31/2024, 11:47 PMthankful-minister-83577
thankful-minister-83577