aloof-magazine-44547
11/18/2024, 11:00 PMtask_logs:
plugins:
logs:
kubernetes-enabled: false
# Enable GCP stackdriver integration for log display
stackdriver-enabled: true
stackdriver-logresourcename: k8s_container
k8s-array:
logs:
config:
stackdriver-enabled: true
stackdriver-logresourcename: k8s_container
However it is not sending any logs to GCP, is there something I am missing? Is it providing a link to a cloud logging query, but there are no logs (even though the workflow does output logs)average-finland-92144
11/19/2024, 4:49 PMtask_logs:
plugins:
logs:
stackdriver-enabled: true
gcp-project: <name of the GCP project>
stackdriver-logresourcename: <logresource name in stackdriver>
stackdriver-template-uri: "<template_uri>"
average-finland-92144
11/19/2024, 4:52 PM<https://console.cloud.google.com/logs/query;query=resource.labels.namespace_name%3D%22{{>`{{.namespace}}`}}%22%0Aresource.labels.pod_name%3D%22{{`{{.podName}}`}}%22%0Aresource.labels.container_name%3D%22{{`{{.containerName}}`}}%22;startTime={{`{{.podRFC3339StartTime}}`}};endTime={{`{{.podRFC3339FinishTime}}`}}?project=<your_GCP_project_ID>&angularJsUrl=%2Flogs%2Fviewer%3Fproject%3D<your_GCP_project_ID>"
average-finland-92144
11/19/2024, 4:54 PMaverage-finland-92144
11/19/2024, 4:55 PMk8s-array
is not needed unless you're using Map Tasksaloof-magazine-44547
11/20/2024, 8:41 AMaloof-magazine-44547
11/20/2024, 10:36 PMaverage-finland-92144
11/20/2024, 10:45 PMflyteadmin
?aloof-magazine-44547
11/21/2024, 1:23 PMaloof-magazine-44547
11/21/2024, 3:58 PMaloof-magazine-44547
11/21/2024, 3:58 PMaverage-finland-92144
11/21/2024, 4:04 PMNo logs,could you get the logs from the flyteadmin Pod? I mean
kubectl logs <flyteadmin-pod-name> -n flyte
average-finland-92144
11/21/2024, 4:11 PMThe problem is those logs are not send to gcp logging in the first placeYeah, it could be either that flyteadmin is not sending anything (flyte config issue), or is sending it to the wrong location (flyte config issue) or that sends logs to the right location but it's not allowed to write on the log resource (perms issue which could be part GCP/flyte config)
average-finland-92144
11/21/2024, 4:11 PMaverage-finland-92144
11/21/2024, 4:11 PMaloof-magazine-44547
11/21/2024, 4:12 PMaverage-finland-92144
11/21/2024, 4:12 PMaloof-magazine-44547
11/21/2024, 4:13 PMaloof-magazine-44547
11/21/2024, 4:16 PMaloof-magazine-44547
11/21/2024, 4:17 PMaverage-finland-92144
11/21/2024, 4:17 PMaloof-magazine-44547
11/21/2024, 4:46 PMaverage-finland-92144
11/21/2024, 4:52 PM