task log ocnfiguration folks - i have been struggl...
# ask-the-community
a
task log ocnfiguration folks - i have been struggling to understand how to configure the logs for regular and map_tasks some of the documentaiton refers to needing to do configuration.logging some of it refers to task_logs? Whoch is the rigth way?
c
howdy - i think that config is for the primary flyte container. i use a flytectl config in
~/.flyte/config.yaml
to configure task pods. e.g.:
Copy code
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///localhost:8089
  insecure: true
console:
  endpoint: http:///localhost:8088
logger:
  show-source: true
  level: 20
a
i have that
i still get
image.png
no logs found
c
i'm not sure how that UI serves logs - do you see the logs in the pod itself?
i.e., running
kubectl logs {taskPodId} -n task-namespace
a
yes i do
c
ok - sorry, we'll need to wait for a maintainer to answer the question about getting those logs into that UI.
b
We do have them setup with something like the following:
Copy code
configmap:
      plugins:
        logs:
          templates:
            - displayName: Datadog
              templateUris:
                - "my_template"
        k8s-array:
          logs:
            config:
              kubernetes-enabled: false
              templates:
                - displayName: Datadog
                  templateUris:
                    - "my_template"
Not deployed with the single-binary
This should be the link to the relevant docs section
For map task you’d wanna use the
k8s-array
config, docs here
a
thx
sorry for being a noob - my yaml file i pass to --values to update flyte-backend flyteorg/flyte-binary it has configuration: as root do i create another file that has configmap:?
@Bernhard Stadlbauer does it need config: under logs: for k8-array? i got regular task log working but k8-array is still empty
b
It should need that yes
s
@Alex Lyashok if you use array node, you don't need separate configuration for logging. here's how you can use array node: https://docs.flyte.org/en/latest/flytesnacks/examples/advanced_composition/map_task.html#arraynode
a
for posterity - this works
image.png
s
would you mind creating an issue so that we can document this properly? please mention how you deployed flyte as well. [flyte-docs]